How to update the existing Container after docker-compose.yml is modified?

  docker, question

Docker is just beginning to learn and use it to simplify the “reconstruction” of the development environment. (The new team members are very effective! )

As if alldocker runCommand, will create a container. The relevant startup parameter becomes the property of this container (docker inspectI will see the information when I get there.

Encountered a problem: I wrote docker-compose.yml. After the corresponding container is created, executing stop/start/restart again has nothing to do with the content of Docker-Compose.yml? Changes in configuration will not take effect? You must delete the current container before starting to create a new container.

It seems that we can only do it again.docker-compose buildThendocker-compose up -d