Difference between revisions of "Docker goodies"

From BITPlan profiwiki Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
=== Attach to a running container ===
 +
* http://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode
 +
 
=== Remove untagged docker images ===
 
=== Remove untagged docker images ===
 
http://stackoverflow.com/a/28377696/1497139
 
http://stackoverflow.com/a/28377696/1497139
Line 4: Line 7:
 
docker rmi -f $(docker images -f "dangling=true" -q)
 
docker rmi -f $(docker images -f "dangling=true" -q)
 
</source>
 
</source>
 +
 +
=== Support for build env variables ===
 +
Upcoming feature in 1.9?
 +
* https://github.com/docker/docker/issues/6822

Revision as of 04:50, 23 October 2015

Attach to a running container

Remove untagged docker images

http://stackoverflow.com/a/28377696/1497139

docker rmi -f $(docker images -f "dangling=true" -q)

Support for build env variables

Upcoming feature in 1.9?