59. What is the difference between Docker commands: up, run and start?
We have up and start commands in docker-compose. The run command is in docker.
a. Up : We use this command to build, create, start or restart all the services in a docker-compose.yml file. It
also attaches to containers for a service.
This command can also start linked services.
b. Run : We use this command for adhoc requests. It just starts the service that we specifically want to start.
We generally use it run specific tests or any administrative tasks.
c. Start : This command is used to start the container that were previously created but are not currently
running. This command does not create new containers.