When I try to stop or restart the docker container, I get the following error message:
$ docker restart 5ba0a86f36ea Error response from daemon: Cannot restart container 5ba0a86f36ea: [2] Container does not exist: container destroyed Error: failed to restart containers: [5ba0a86f36ea]
But when I started
$ docker logs -f 5ba0a86f36ea
I see the logs, so the container clearly exists. Any ideas?
Edit:
Sorry, I forgot to mention this:
When I start docker ps -a , I see the container in working condition. However, the application inside it does not work correctly, so I want to restart it or just get a new version of this application on the Internet. But when I cannot stop and remove the container, I also cannot start and start a new application that will listen on the same port.
docker
peter
source share