Docker container not running after restart
I executed docker run command and the container runs successfully and I am able to access the web page. After I restart the instance, the web page is no longer accessible. I executed the below docker run command:
docker run -p 80:80 hello-world
Most probably the container has exited and therefore you are not able to access the web page. Check if the container is still running or not with the below command,
sudo docker ps
If you don’t see the container running, then execute the below command to run the container again,
sudo docker run -p 80:80 hello-world
You should be able to access the web page now.