zl程序教程

您现在的位置是:首页 >  工具

当前栏目

[Docker] Run Short-Lived Docker Containers

Docker run Containers short
2023-09-14 08:59:19 时间

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.