dockerpress icon indicating copy to clipboard operation
dockerpress copied to clipboard

Restarted container not available

Open n0nama opened this issue 9 years ago • 1 comments

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?

n0nama avatar Aug 12 '15 07:08 n0nama

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...

fzarifian avatar Oct 07 '16 10:10 fzarifian