docker run -d --net=mynet --name web training/webapp
docker run -d --net=mynet --name db training/postgres
docker run -d --net=mynet --name web training/webapp
docker run -itd --name myweb -p 8080:80 -v /data:/usr/local/apache2/htdocs httpd
docker run -itd --name myweb1 -p 8081:80 -v /usr/local/apache2/htdocs httpd
docker volume create --name webdata
docker run -itd --name myweb2 -p 8082:80 -v webdata:/usr/local/apache2/htdocs httpd
docker run -itd --name myweb3 -p 8083:80 -v webdata:/usr/local/apache2/htdocs httpd
docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock -v /Users/lee/dev/docker_file/portainer/data:/data docker.io/portainer/portainer
Images
Images > Build a New Image
docker history [httpd容器ID]
docker run -it --rm busybox echo "hello"