Detach
this post was submitted on 09 Sep 2023
9 points (76.5% liked)
Docker
1080 readers
1 users here now
founded 1 year ago
MODERATORS
What does detach mode do?
Returns to the normal terminal after it runs.
Remove -d and the docker container will be running in that terminal and you won't be able to enter any other commands. Alt+c will return to normal terminal and kill the container
Otherwise -d
does nothing different to the container, just runs the container "in the background" so you can continue entering other commands in the terminal without having to open another terminal tab or terminal window?
Correct
Thanks for finishing my answer with the real details :)
I was laying down for bed and thought "I should provide more details... But so tired" As I drifted off to sleep
docker
jk
daemon?