detached mode

Running a container in the background so your terminal is free straight away.

In more detail

docker run -d prints the container ID and returns. Read its output later with docker logs and stop it with docker stop. The opposite is foreground mode.

Examples

docker run -d ... redpanda start
docker run -d --name command-demo alpine:3.20 sleep 20

Related terms

Taught in

References

Certification courses