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

something important

时间:2016-11-13 22:12:12      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:imp   eth   log   cut   ted   man   echo   com   cti   

docker run ubuntu /bin/echo ‘Hello world‘

运行这条命令,docker做了什么

Well, Docker containers only run as long as the command you specify is active. Therefore, in the above example, the container stops once the command is executed.

命令激活的时候docker容器才会运行。也就是说,命令执行完了,docker容器也就停止运行了(不是docker服务)。

something important

标签:imp   eth   log   cut   ted   man   echo   com   cti   

原文地址:http://www.cnblogs.com/wozixiaoyao/p/6059986.html

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