Docker image missing after reboot PC

I am working with this docker file; After I connected docker repository one time i rebooted PC and it has gone. How I can make it permanent.

Thanks for your help.

3 Answers

I had a similar issue and restarting docker with the command below solved it for me.

sudo systemctl restart docker.service

Note: You can consider making docker start at runtime.

Setting the docker service to run at startup:

sudo systemctl enable docker

And then you'll have to run the docker service (only this time, it will run automatically at the next restart):

sudo systemctl start docker

Or even:

sudo systemctl restart docker

The answer with the restart command will work but won't survive a startup.

That docker image is not gone you might need to start it again. First you need to check available docker list using following command

docker ps -a

This will list all the containers available

docker ps

Only shows currently running images. Once you find your image you can run it using command

docker start <container name>

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like