What does the -d mean in the run command?

What does the -d mean in the run command?

docker run -d -p 3355:3355/tcp -p author/image
9 points · 9 comments · view on lemmy.world

9 Comments

clif@lemmy.world · 15 pts · 2y (5 replies)

Detach

trymeout@lemmy.world · 2 pts · 2y (4 replies)

What does detach mode do?

jws_shadotak@sh.itjust.works · 15 pts · 2y (3 replies)

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

trymeout@lemmy.world · 6 pts · 2y (1 reply)

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?

jws_shadotak@sh.itjust.works · 5 pts · 2y

Correct

clif@lemmy.world · 3 pts · 2y

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

aventu@programming.dev · 4 pts · 2y
UnixTM@programming.dev · 0 pts · 2y

docker

jk

JoYo@lemmy.ml · -1 pts · 2y

daemon?