docker:containers:create_a_container
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:containers:create_a_container [2022/09/19 14:27] – [Docker - Containers - Create a container] peter | docker:containers:create_a_container [2022/09/19 14:29] (current) – [Run a Container that does not stop automatically] peter | ||
---|---|---|---|
Line 32: | Line 32: | ||
docker run -ti ubuntu | docker run -ti ubuntu | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
* **-t**: | * **-t**: | ||
* **-i**: | * **-i**: | ||
- | This allows continuous use of the container until the terminal is exited by running the "exit" | + | This allows continuous use of the container until the terminal is exited by running the **exit** command. |
When the container is created, it is given its container ID and a randomly-generated name. | When the container is created, it is given its container ID and a randomly-generated name. | ||
Line 49: | Line 51: | ||
</ | </ | ||
+ | |||
+ | </ | ||
docker/containers/create_a_container.1663597655.txt.gz · Last modified: 2022/09/19 14:27 by peter