User Tools

Site Tools


docker:launch_a_docker_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:launch_a_docker_container [2016/10/17 08:55] peterdocker: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.  If the image doesn't exist on your local machine, Docker will attempt to fetch it from the public image registry.  It’s important to note that containers are designed to stop once the command executed within them has exited.  For example, if you ran **/bin/echo hello world** as your command, the container will start, print hello world and then stop: 
- 
-<code bash> 
-docker run ubuntu /bin/echo hello world 
-</code> 
- 
  
docker/launch_a_docker_container.1476694551.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki