Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
docker:start [2015/03/04 15:20]
vondra [Delete old docker images and keep the running ones]
docker:start [2015/03/04 15:50]
vondra
Line 1: Line 1:
 +======Docker======
 +  * best source of docker wisdom: https://​github.com/​wsargent/​docker-cheat-sheet
 +
 ===== Building a docker image ===== ===== Building a docker image =====
   - Create Dockerfile or clone docker repository   - Create Dockerfile or clone docker repository
Line 29: Line 32:
  
 ===== Delete old docker images and keep the running ones ===== ===== Delete old docker images and keep the running ones =====
-<​code>​docker ps -a | grep '​Exited'​ | awk '​{print $1}' | xargs --no-run-if-empty docker rm </​code>​+  * remove images from docker<​code>​docker ps -a | grep '​Exited'​ | awk '​{print $1}' | xargs --no-run-if-empty docker rm </​code>​ 
 +  * delete them physically<​code>​docker images --no-trunc| grep none | awk '​{print $3}' | xargs -r docker rmi </​code>​
 
docker/start.txt · Last modified: 2015/03/04 16:44 by vondra