this post was submitted on 09 Sep 2023
9 points (76.5% liked)

Docker

1311 readers
5 users here now

founded 2 years ago
MODERATORS
 

What does the -d mean in the run command?

docker run -d -p 3355:3355/tcp -p author/image
top 9 comments
sorted by: hot top controversial new old
[–] clif@lemmy.world 13 points 2 years ago (1 children)
[–] trymeout@lemmy.world 2 points 2 years ago (1 children)
[–] jws_shadotak@sh.itjust.works 15 points 2 years ago (2 children)

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 points 2 years ago (1 children)

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?

[–] clif@lemmy.world 3 points 2 years ago

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 points 2 years ago* (last edited 2 years ago)
[–] UnixTM@programming.dev 0 points 2 years ago
[–] JoYo@lemmy.ml -1 points 2 years ago