码迷,mamicode.com
首页 > 其他好文 > 详细

3-7 run vs cmd vsentrypoint

时间:2019-04-09 22:10:44      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:build   shel   exec   ges   try   type   alt   vpd   打印   

技术图片
技术图片
技术图片
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
技术图片

3-7 run vs cmd vsentrypoint

标签:build   shel   exec   ges   try   type   alt   vpd   打印   

原文地址:https://blog.51cto.com/skinglzw/2376252

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!