What does the -d flag mean in docker run -d?

Docker Fundamentals Easy

Docker Fundamentals — Easy

What does the -d flag mean in docker run -d?

Key points

  • -d flag enables Detached mode for running containers
  • Detached mode allows containers to run in the background
  • It frees up the terminal for other commands
  • Useful for long-running processes that don't require immediate interaction

Ready to go further?

Related questions