What is the purpose of docker-compose up versus docker-compose start?

Docker Fundamentals Medium

Docker Fundamentals — Medium

What is the purpose of docker-compose up versus docker-compose start?

Key points

  • docker-compose up builds and starts containers
  • docker-compose start only restarts stopped containers
  • up is used for initial setup, start for restarting
  • up can create new containers, start only restarts existing ones

Ready to go further?

Related questions