Page 1 of 1

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

Posted: Sat Dec 30, 2023 6:02 pm
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.