Docker Registry Filling Up Storage in Red Hat OpenShift Enterprise 3
Issue
/var/lib/dockeris consuming large amounts of storage. Why is docker using/var/lib/docker/containerand not the volume group/logical volume we have assigned to it?- We have set up docker to use a logical volume for storage as follows, yet it still uses
/var/lib/docker/for storage
cat /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS=--storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/docker-docker--pool --storage-opt dm.use_deferred_removal=true
and
cat /etc/sysconfig/docker-storage-setup
# Edit this file to override any configuration options specified in
# /usr/lib/docker-storage-setup/docker-storage-setup.
#
# For more details refer to "man docker-storage-setup"
VG=docker
- When
/var/lib/dockerfills up, it fills up the entire root partition and makes the system inoperative.
Environment
- Red Hat OpenShift Enterprise 3.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
