Difference between revisions of "Docker Cheatsheet"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
 
{|
 
{|
 
|docker run -i -t -P 8080:8080 consol/tomcat-6.0 /bin/bash
 
|docker run -i -t -P 8080:8080 consol/tomcat-6.0 /bin/bash
|Run interactively and expose ports
+
|'''Run interactively and expose ports'''
 
|-
 
|-
 
|docker commit  06849711354c  centos-george2-1
 
|docker commit  06849711354c  centos-george2-1

Revision as of 13:10, 18 February 2016

docker run -i -t -P 8080:8080 consol/tomcat-6.0 /bin/bash Run interactively and expose ports
docker commit 06849711354c centos-george2-1 Make a commit
docker rmi centos-george2-1 Delete an image
docker images AShow images
docker ps show running images
docker run -it centos-george-1 /bin/bash Run interactively