What is a difference between docker compose stop and docker compose down?

Experience Level: Junior
Tags: Docker Compose

Answer

  • When you execute docker compose stop, the running containers are stopped and they are not removed.
  • When you execute docker compose down, the running containers are stopped and also removed. Also the networks, volumes and images created by docker compose up are removed.

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker Compose
Docker Compose

Are you learning Docker Compose ? Try our test we designed to help you progress faster.

Test yourself