Docker run-attach-detach

Hello,

In the basic docker commands, with run-attach-detach why does running the command docker run kodekloud/simple-webapp was attached to the prompt. I suppose we can always run everything under the hood instead of specifying the -d flag.

Thanks

I think running it in the foreground – the default behavior – is easier to debug if you get something very simple wrong. So it’s good for beginners.