I am running docker run container command in 2 ways
docker container run 4e5021d210f6
docker container run -d 4e5021d210f6
what is the difference between the execution of command 1 and command 2?
-d will run the container in the background. It's the same as adding --detach. What is being printed when you use -d is the container's ID.
https://docs.docker.com/engine/reference/commandline/run/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With