发布时间:2019-07-13 11:35:13编辑:auto阅读(2281)



docker build -t xiaopeng163/centos-entrypoint-shell .
有了image 以后,就可以创建container
执行 docker run xiaopeng163/centos-entrypoint-shell 创建一个容器
打印出 hello Docker

docker run xiaopeng163/centod-entrypoint-exec
打印出 hello $name
vim 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 命令覆盖掉
上一篇: Node.js的基本使用3
下一篇: 在HC3上配置VLAN
51331
50785
41378
38180
32669
29561
28400
23278
23244
21568
1650°
2380°
1985°
1925°
2254°
1958°
2654°
4450°
4280°
3050°