Containers

How to run a container in the background?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

With the -d flag. It will run in the background and will not attach it to the terminal.

docker container run -d httpd or podman container run -d httpd