docker:containers:start_a_container
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker:containers:start_a_container [2020/11/11 10:46] – created 192.168.1.1 | docker:containers:start_a_container [2022/09/19 14:38] (current) – [Docker - Containers - Start a Container] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Docker - Containers - Start a Container ====== | ====== Docker - Containers - Start a Container ====== | ||
+ | |||
+ | Containers are started using either the **docker start** command; or the **docker run** command. | ||
+ | |||
+ | <WRAP info> | ||
+ | * **Docker Start**: | ||
+ | * For example, if you had stopped a container with the command **'' | ||
+ | |||
+ | * **Docker run**: | ||
+ | * You can create N clones of the same image. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Start a Container ====== | ||
<code bash> | <code bash> | ||
Line 16: | Line 32: | ||
---- | ---- | ||
+ | |||
+ | ====== Start Multiple Stopped Containers ====== | ||
+ | |||
+ | <code bash> | ||
+ | docker start nginx-container httpd-container | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Start a new Docker Container from an Image ====== | ||
+ | |||
+ | <code bash> | ||
+ | docker run -itd --name=nginx-container nginx | ||
+ | </ | ||
+ | |||
docker/containers/start_a_container.1605091603.txt.gz · Last modified: 2020/11/11 10:46 by 192.168.1.1