User Tools

Site Tools


docker:containers:create_a_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:containers:create_a_container [2022/09/19 14:27] – [Docker - Containers - Create a container] peterdocker: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
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  where:
  
   * **-t**:  Runs a terminal.   * **-t**:  Runs a terminal.
   * **-i**:  Allow us to interact with it.    * **-i**:  Allow us to interact with it. 
  
-This allows continuous use of the container until the terminal is exited by running the "exitcommand. +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:
 </code> </code>
  
 +
 +</WRAP>
  
  
  
  
docker/containers/create_a_container.1663597655.txt.gz · Last modified: 2022/09/19 14:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki