How to run 'docker-compose up' in the background

In order to run docker-compose up in the background, use

example.sh
docker-compose up -d

The -d option means --detach, i.e. the process is detached from the foreground shell you are running.


Check out similar posts by category: Container, Docker, Linux