Docker Image Missing After Reboot Pc

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

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

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.