docker: how to restart containers from files from /var/lib/docker/containers

I have updated my distro from 13.04 to 13.10 and had a bunch of running containers. the container files are still in /var/lib/docker/container however I can not start these:

$ sudo docker start 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65
Error: No such container: 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65
2014/03/25 05:18:14 Error: failed to start one or more containers

$ sudo tail /var/log/upstart/docker.log
2014/03/25 05:11:19 POST /v1.10/images/create?fromImage=7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65&tag=
[/var/lib/docker|5227412d] +job pull(7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65, )
HTTP code: 404
[/var/lib/docker|5227412d] -job pull(7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65, ) = ERR (1)
2014/03/25 05:18:14 POST /v1.10/containers/7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65/start
[/var/lib/docker|5227412d] +job start(7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65)
No such container: 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65
[/var/lib/docker|5227412d] -job start(7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65) = ERR (1)
[error] server.go:950 Error: No such container: 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65
[error] server.go:85 HTTP Error: statusCode=404 No such container: 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65

debug log from docker startup

  • Docker blocking outgoing connections on high load?
  • How do you set up selenium grid using docker on windows?
  • Execute a Firefox Browser in a Docker Container for Selenium testing
  • How can I setup monitoring of Docker Container from Nagios
  • How I can run docker containers on the remote host?
  • Docker - commit container with running processes (postgresql)
  • [debug] runtime.go:300 Cannot load container 7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65 because it was created with another graph driver.

    inspecting driver which this container was created with:

    $ cd /var/lib/docker/containers/7ef2b26aa60d70d9167571dcc55502eee0c9f80ad7601bacc8a047ca1b28be65
    $ cat ./config.json | grep -o Driver.*\",

    is there any way to recover these?

  • Spring boot app location inside docker container
  • how to make a non-hardcoded URL path in docker image to call backend service?
  • Run a docker service on a swarm having several system architectures
  • How to update a docker swarm service with no replication with zero downtime?
  • How to set/get the project name in docker-compose.yml
  • Custom Container for hosting OpenLDAP in Bluemix
  • One Solution collect form web for “docker: how to restart containers from files from /var/lib/docker/containers”

    Turns out after updating aufs was uninstalled. reinstalling like so:

    sudo apt-get update
    sudo apt-get install linux-image-extra-`uname -r`

    fixes issue!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.