skip to Main Content

i have a running container that I want to update, due to some parameters that I add on docker-compose.

tried docker-compose up -d, but didn’t work (complains about having the same port).

any solutions or do I have to remove and re-add the container?

2

Answers


  1. Chosen as BEST ANSWER

    fixed by adding -p [PROJECT NAME] to the docker-compose up


  2. Try docker-compose restart or docker-compose down && docker-compose up -d.
    The first command simply restarts the container with your new settings.
    The second command deletes the old container and creates a new one also with your new settings.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search