docker build -t xiaopeng163/centos-entrypoint-shell .有了image 以后,就可以创建container执行 docker run xiaopeng163/centos-entrypoint-shell 创建一个容器打印出 hello Dockerdocker run xiaopeng163/centod-entrypoint-exec打印出 hello $namevim Dockerfile
docker build -t xiaopeng163/centos-entrypoint-exec-new .
docker run xiaopeng163/centod-entrypoint-exec-new打印出 hello Docker把退出的docker container 删除掉
docker run -it xiaopeng163/centos-cmd-shell /bin/bash 会把 里面 cmd 命令覆盖掉
docker run -it xiaopeng163/centos-entrypoint-shell /bin/bash 不会把 entrypoint 命令覆盖掉