Difference between revisions of "Docker"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 1: Line 1:
 +
 +
 +
{{|border=1 ;style="margin: 0 auto; text-align: center;cellpadding="5" cellspacing="0";
 +
|- bgcolor=lightgrey
 +
! command !! Explanation
 +
|-
 +
|docker ps||Status of running containers
 +
|-
 +
|docker container ls||Status of running containers (As above)
 +
|-
 +
|docker run ubuntu|| Run container ubuntu (Terminates as its bash exits)
 +
|-
 +
|docker run -it ubuntu|| Run container ubuntu -it = interactive tty
 +
|-
 +
|}
 +
 +
  
 
*[[cgroups Linux]]
 
*[[cgroups Linux]]
 
*[[namespaces Linux]]
 
*[[namespaces Linux]]
 
[[Category:Linux]][[Category:Docker]]
 
[[Category:Linux]][[Category:Docker]]

Revision as of 13:54, 22 September 2024


{{|border=1 ;style="margin: 0 auto; text-align: center;cellpadding="5" cellspacing="0"; |- bgcolor=lightgrey ! command !! Explanation |- |docker ps||Status of running containers |- |docker container ls||Status of running containers (As above) |- |docker run ubuntu|| Run container ubuntu (Terminates as its bash exits) |- |docker run -it ubuntu|| Run container ubuntu -it = interactive tty |- |}