0 votes
in Docker by

What does the -d flag do in the docker run command?

a) Deletes the container

b) Displays detailed information

c) Detaches the container (runs in the background)

d) Downloads the latest image

1 Answer

0 votes
by
c) Detaches the container (runs in the background)

Explanation:

When using -d with the docker run command, the container starts in detached mode, which means it runs in the background and does not attach to the current terminal session.
...