docker:launch_a_docker_container
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docker:launch_a_docker_container [2017/02/22 16:10] – peter | docker:launch_a_docker_container [2019/11/27 01:08] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Docker - Launch a Docker Container ====== | ||
- | |||
- | Launching a container is simple as **docker run** + the image name you would like to run + the command to run within the container. | ||
- | |||
- | <code bash> | ||
- | docker run ubuntu /bin/echo hello world | ||
- | </ | ||
- | |||
- | **NOTE**: | ||
- | |||
- | |||
- | An alternative method is: | ||
- | |||
- | <code bash> | ||
- | docker run -ti ubuntu | ||
- | </ | ||
- | |||
- | * **-t**: | ||
- | * **-i**: | ||
- | |||
- | This allows continuous use of the container until the terminal is exited by running the " | ||
docker/launch_a_docker_container.1487779837.txt.gz · Last modified: 2020/07/15 09:30 (external edit)