Docker can't start container: "Key not found in store"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 378
Joined: Tue Nov 12, 2013 2:05 am

Docker can't start container: "Key not found in store"

Post by peter_b »

On Xubuntu 20.04.3:

This morning, I wanted to restart an already existing Docker container:

Code: Select all

$ sudo docker start my_container
... but got this error message:
failed to update store for object type *libnetwork.endpointCnt: Key not found in store

[SOLUTION]
On my setup, the /var/lib/docker folder is a mountpoint for a larger disk - which wasn't mounted automatically, so Docker saw an "old", underlying installation structure. Therefore it couldn't find its keys...

But "mount --bind ..." didn't help, because Docker needs to restart to load its stuff properly.

Anyways:
Make sure your /var/lib/docker is as sane as your setup requires it, then restart docker:

Code: Select all

$ sudo systemctl restart docker
Then try starting the container again.
Post Reply