3-7 run vs cmd vsentrypoint
3-7 run vs cmd vsentrypoint
3-7 run vs cmd vsentrypoint
docker build -t xiaopeng163/centos-entrypoint-shell .
3-7 run vs cmd vsentrypoint
有了image 以后,就可以创建container
执行 docker run xiaopeng163/centos-entrypoint-shell 创建一个容器
打印出 hello Docker
3-7 run vs cmd vsentrypoint
3-7 run vs cmd vsentrypoint
docker run xiaopeng163/centod-entrypoint-exec
打印出 hello $name
vim Dockerfile
3-7 run vs cmd vsentrypoint

docker build -t xiaopeng163/centos-entrypoint-exec-new .

docker run xiaopeng163/centod-entrypoint-exec-new
打印出 hello Docker
3-7 run vs cmd vsentrypoint
3-7 run vs cmd vsentrypoint
把退出的docker container 删除掉
3-7 run vs cmd vsentrypoint

docker run -it xiaopeng163/centos-cmd-shell /bin/bash 会把 里面 cmd 命令覆盖掉

docker run -it xiaopeng163/centos-entrypoint-shell /bin/bash 不会把 entrypoint 命令覆盖掉