<p>What is detached mode in the docker world? I read this article 
<a href="https://docs.docker.com/engine/reference/run/#detached-vs-foreground" rel="noreferrer">Link</a>, but it does not explain exactly what detached mode mean.</p>

<p>You can start a docker container in detached mode with a <code>-d</code> option. So the container starts up and run in background. That means, you start up the container and could use the console after startup for other commands.</p>

<p>The opposite of detached mode is foreground mode. That is the default mode, when <code>-d</code> option is not used. In this mode, the console you are using to execute <code>docker run</code> will be attached to standard input, output and error. That means your console is attached to the container's process.</p>

<p>In detached mode, you can follow the standard output of your docker container with <code>docker logs -f &lt;container_ID&gt;</code>.</p>

<p>Just try both options. I always use the detached mode to run my containers. I hope I could explain it a little bit clearer.</p>
