@rimelek
I am new to docker-compose and would like to learn the proper way to rebuild containers after docker-compose run.
Questions:
- Is the situation I faced is an expected situation?
- Is it the standard / expected way to rebuild the container after the first docker-compose?
docker-compose build
# or
docker-compose up -d --no-deps --build <service_name>
Reason / Expectation:
I thought I should be able to run the same docker-compose run --rm myService command after running docker-compose down or docker remove networkName. Note that I also modified one of the Dockerfile before running docker-compose run --rm myService
After running docker-compose down or docker remove networkName, docker network ls doesn’t have that network. However, when I run docker-compose run --rm myService again, it just says
[+] Running 1/0
⠿ Network myService_default Created