Docker Community Forums

Share and learn in the Docker community.

Varnish container sucking up 1MB/minute of /var/lib/docker


(Adrian Goins) #1

I’m running Varnish from here. I have /etc/varnish and /var/lib/varnish mounted as volumes from the filesystem. The container somehow sucks up 1MB/minute of disk space in /var/lib/docker, and I can’t figure out where. I’m using aufs, and I’ve checked the aufs mount point for the container. It never shows any change in size with du. If I stop and recreate the container, the space is recovered. I’m unable to run lsof inside the container, and lsof of the processes from the host don’t show any other paths open outside of /var/lib/varnish and /etc/varnish.

I do not have this issue with any other container besides the Varnish one.

What other options do I have for tracing what resources inside of /var/lib/docker are being used by a container?

OS: Ubuntu 14.04 LTS
Docker: 1.9.1
Steps to reproduce:

  1. Run container from here.
  2. Watch disk space disappear.
  3. Stop/recreate container.
  4. Watch disk space return.

(David Maze) #2

Shot in the dark: it’s spewing to stdout, and Docker is capturing JSON-format logs?


(Adrian Goins) #3

Shot in the dark: it’s spewing to stdout, and Docker is capturing
JSON-format logs?

Oof…yeah. It seems so obvious when you say it. :slight_smile: Thanks for the
second set of eyes.

Adrian