User Tools

Site Tools


packages:docker

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
Next revision Both sides next revision
packages:docker [2016-02-09 07:48]
glen [Network Configuration]
packages:docker [2016-05-31 07:50]
glen [Getting rid of unused images]
Line 9: Line 9:
  
 [[packages:​kernel]] with ''​USER_NS'',​ ''​USER_NET'',​ etc. [[packages:​kernel]] with ''​USER_NS'',​ ''​USER_NET'',​ etc.
 +
 +==== Setup Cgroups ====
 +
 +Easiest way is to install [[package>​libcgroup]] package and enable all cgroup types:
 +
 +<​code>​
 +# install libcgroup and enable mounts
 +poldek -u --noask libcgroup
 +sed -i -e '/​^#​mount/,​$ s/​^#//'​ /​etc/​cgconfig.conf
 +service cgconfig start 
 +</​code>​
 ===== Network Configuration =====  ===== Network Configuration ===== 
  
Line 27: Line 38:
 ===== How To =====  ===== How To ===== 
  
-==== Getting rid of unused images ​====+==== Maintenance ==== 
 + 
 +Getting rid of unused images
  
 <​code>​ <​code>​
 +docker images --filter dangling=true
 docker rmi $(docker images --filter dangling=true --quiet) docker rmi $(docker images --filter dangling=true --quiet)
 </​code>​ </​code>​
 +
 +Getting rid of unused volumes
 +<​code>​
 +$ docker volume ls -qf dangling=true
 +$ docker volume ls -qf dangling=true | xargs -r docker volume rm
 +</​code>​
 +
 +For Docker < 1.9, see [[https://​github.com/​chadoe/​docker-cleanup-volumes|docker-cleanup-volumes]] tool.
 ===== PLD Base image ===== ===== PLD Base image =====
  
packages/docker.txt · Last modified: 2020-10-24 16:21 by glen