9
submitted 10 months ago by [email protected] to c/[email protected]

What does the -d mean in the run command?

docker run -d -p 3355:3355/tcp -p author/image
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 15 points 10 months ago
[-] [email protected] 2 points 10 months ago
[-] jws_shadotak 15 points 10 months ago

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

[-] [email protected] 6 points 10 months ago

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 5 points 10 months ago
load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 09 Sep 2023
9 points (76.5% liked)

Docker

966 readers
1 users here now

founded 1 year ago
MODERATORS