码头工人建造- t xiaopeng163/centos-entrypoint-shell。
有了形象以后,就可以创建容器
执行码头工人运行xiaopeng163/centos-entrypoint-shell创建一个容器
打印出你好码头工人
码头工人运行xiaopeng163/centod-entrypoint-exec
打印出hello $名称
vim Dockerfile
码头工人建造- t xiaopeng163/centos-entrypoint-exec-new。
码头工人运行xiaopeng163/centod-entrypoint-exec-new
打印出你好码头工人
把退出的集装箱码头工人删除掉
码头工人运行- xiaopeng163/centos-cmd-shell/bin/bash会把里面cmd命令覆盖掉
码头工人运行- xiaopeng163/centos-entrypoint-shell/bin/bash不会把入口点命令覆盖掉