Docker Daemon starts many processes on start up

TLDR

Docker is starting up many processes and exceeds the available memory limit, which in turn makes linux kill the docker deamon.

Problem
Hee,

I have some server space running a couple of docker containers.

I tried to install docker-machine and create a manager node with the idea to run my containers in there. This gave many issues so I stopped trying.

Now I am switched back to using a plain deamon on the server.

But the issue is that when the daemon starts up it quickly gets killed by the server because it exceeds the memory usage.

The reason for this, it think, is that it starts up around 10 orphan containers that quickly fill up all the available memory.

Below you can see a screenshot from the process running on the server.

I cannot find a way to stop docker from starting these containers or whatever it is that it is starting.

I tried the following things:

  • Restart docker (service docker restart)
  • Deleting the folders under /var/lib/containered/io.containerd.runtime.v1.linux/moby

Question
Does someone have an idea how I can stop docker from starting these processes on start up?

Specs:

  • Docker version: Docker version 19.03.4, build 9013bf583a
  • Ubuntu 19.04