首页 > 其他 > 详细

[Docker] Run Short-Lived Docker Containers

时间:2016-12-02 07:55:08      阅读:233      评论:0      收藏:0      [点我收藏+]

Learn the benefits of running one-off, short-lived Docker containers. Short-Lived containers are useful to execute one-line commands or setup scheduled tasks. We‘ll demonstrate setting up a cronjob from the host machine to tap into the benefits of running automated, timed scripts with Docker.

docker --rm ngnix ngnix -h  // run short live ngnix container with command ngnix -h

This command will run ngnix container a short time, and exist after running.

[Docker] Run Short-Lived Docker Containers

原文:http://www.cnblogs.com/Answer1215/p/6124321.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!