dockerpress
dockerpress copied to clipboard
Restarted container not available
First of all I want to say thank you very much for this useful script! It saved a bunch of time for me! But I have an issue, when I try to restart docker container. It seems that container uses another port (32770 instead of current 32771, for example). How I can fix it?
The better way to restart a container seems to be :
- stop the running container with this docker command :
docker stop $(docker ps -f name=<YOUR_URL> -q)
- restart it with
dockerpress --url <YOUR_URL>
which will start a new container and redo the nginx configuration with the newest port
But, you will have a new instance (the old wordpress blog will be lost, a docker feature) because i didn't see anything on the code to mount a docker volume which could save the state nor the database container...