Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker shows no containers or images after system reboot

Tags:

docker

ubuntu

Help! I can't get docker to recognize the images and containers it had just a moment ago. After running apt-get update && apt-get dist-upgrade and rebooting, I see docker reporting no data:

$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE

But the data appears to still be there

$ sudo du -hs /var/lib/docker/*
8.0K    /var/lib/docker/apparmor
1.9G    /var/lib/docker/aufs
136K    /var/lib/docker/containers
292M    /var/lib/docker/devicemapper
8.0K    /var/lib/docker/execdriver
712K    /var/lib/docker/graph
17M     /var/lib/docker/init
8.0K    /var/lib/docker/linkgraph.db
4.0K    /var/lib/docker/repositories-aufs
4.0K    /var/lib/docker/repositories-devicemapper
4.0K    /var/lib/docker/volumes

Could it be looking in the wrong place for it? Is there some config file that specifies the storage location?

Edit: running docker -d -D reports:

[debug] daemon.go:328 Cannot load container 93092d010a9abe9affc217684782e8b2986e560897eb4527715e9bffe0446136 because it was created with another graph driver.
like image 644
Phssthpok Avatar asked Jun 04 '14 05:06

Phssthpok


2 Answers

It seems that you have somehow switched storage backends. You can't use containers created with a different backend.

like image 137
cpuguy83 Avatar answered Oct 21 '22 22:10

cpuguy83


I had same problem on Windows. I had to go to Docker-->settings-->switch to windows based container. I don't know why but somehow after reboot docker started on Linux based container. so i did not got any image and container after restart.

like image 27
Manish Sakariya Avatar answered Oct 22 '22 00:10

Manish Sakariya