Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to repair docker or reinstall it?

Tags:

docker

I have done this command and now docker don't work...

How can I repair (or reintall) docker properly?

sudo rm -rf /var/lib/docker/aufs

I have try to do

apt-get install --reinstall docker

but it didn't work

this is my error message:

docker: Error response from daemon: open /var/lib/docker/aufs/layers/c14f6c4750a2a3fcfa33e6f33041bf4fce087d314fb413ee3662e6e7035fea75: no such file or directory.
like image 738
Fractale Avatar asked Feb 16 '17 03:02

Fractale


People also ask

How do I reinstall Docker without losing the containers?

It turns out that when uninstalling docker using apt, the /var/lib/docker directory remains untouched, and the volumes will stay intact. You can simply run apt-get remove docker-ce to uninstall docker without removing your volumes.

Do I need to rebuild Docker?

You don't need to rebuild your Docker image in development for each tiny code change. If you mount your code into your dev container, you don't have to build a new image on every code change and iterate faster. It's a great feeling when you make changes and see the results right away!


1 Answers

Try this on ubuntu with docker-ce

sudo apt-get install --reinstall docker-ce
like image 98
rakeshz Avatar answered Oct 25 '22 23:10

rakeshz