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

[Docker] Run Short-Lived Docker Containers

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

标签:--   ted   running   run   docker   style   tap   pre   command   

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

标签:--   ted   running   run   docker   style   tap   pre   command   

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

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