What is a detached mode in Docker and how it internally works?

Anar Məmmədov
1 min readDec 13, 2022

--

Hi there, I am going to explain about detached mode in this Docker article. So without further ado let’s get started. I am sure that any person, who is start to learn tutorial about Docker and a lots of people encounter problem when they are arrived detached mode. The reason happened this because we type commands on black console and there is not any idea what it is in order to simulation. So what exactly detached mode guys? Let me explain it more clearly and deeply fully understand what it is?

To understand what does mean that -d in docker world, let me explain more clearly with the simulation within it. Docker detached mode means that you can tell the docker that do process(container) until if I am going to write the command docker stop container-id or container-name otherwise I mean without detached mode docker run the process(container) either you press ctrl+c or close a terminal, in other words you have not any choice when docker run the process(container) if you run the process(container) without -d. But you have any choice that docker return id of the container when you type the command with -d because of running process(container) in the background.

--

--

Anar Məmmədov
Anar Məmmədov

Written by Anar Məmmədov

Java Backend Developer wondering RDBMS and processing of structure any technology that is related backend.

No responses yet