Docker Daemon without containers uses 100% memory

Hi everyone,

I’m currently facing the following issue:
The docker daemon slowly increases the used memory until the service gets unresponsive even if there are no containers running. At the moment I don’t even have any images, networks or volumes on my system.
When looking at the docker logs, I can see the following error message:

> journalctl -u docker.service    
level=error msg="libcontainerd: error restarting containerd: fork/exec /usr/bin/docker-containerd: cannot allocate memory"

My system specs:

  • Ubuntu 16.04.2 LTS; 8GB RAM, 4GB Swap
  • Docker 17.03.1-ce

Does anyone have any ideas how to solve this issue?

Kind regards,