Docker Registry Filling Up Storage in Red Hat OpenShift Enterprise 3

Solution Verified - Updated -

Issue

  • /var/lib/docker is consuming large amounts of storage. Why is docker using /var/lib/docker/container and 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/docker fills 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content