I have simple container with some service.
When I restarting server without stopping this container, I can't start it again.
Error message is:
pidfile found, try stopping another running service or delete /var/run/service.pid
I know that I can
- run new container from image and delete stopped one
- create new image from stopped container and re-run it with new entrypoint. Something like
rm -f /var/run/service.pid && original_entrypoint.sh
But I want simply do something like
docker rm_file container:/var/run/service.pid; docker start container
Because it is most simple and fast to start solution.
Isn't here is no way to access container's fs without completely rebuild it? This operation is looking so useful...