The user required Docker-compose up UP is used to start or restart the services which are defined under Docker-compose.yml. In the default attached mode, all the logs from containers will be visible to you. In detached mode composed exits by starting the container but containers pursue running in the background.

The Docker-compose run command is utilized for ad hoc or one-off tasks. They also require the services name in which the user wants to utilize run and only start the container for the same services which are dependent on the running services. It is also used to test or perform administrative tasks like removing or adding data to the volume container.

The Docker-compose start command is used to restart the containers that were created earlier but stopped. With this command, new containers cannot be created.

BY Best Interview Question ON 06 Oct 2019