Search code examples
dockerdocker-compose

"docker-compose up -d" in this docker command what does "-d" do


In the following docker-compose command, what is the purpose of the "-d"?

docker-compose up -d


Solution

  • "d" stands for detach, meaning it will run in the background.

    Just use docker-compose up --help to see the options and their definition.