I have used run command in docker cli to so when i used the command
docker run --name ubuntu ubuntu
it simply exists because it has no ptty and input output connection and we can attach our terminal using -it flags but when we try to start docke container which is in stopped state why does the container by default start in dettached mode this behaviour has not even been mentioned in documentation.
when i use the command
docker start ubuntu
when container "ubuntu" is in stopped mode the container is up and is running in background but when i use "docker run" command the container simply stops can someone explain this behaviour.
and it would be great if you can provide some material to refer as i found none regarding this behaviour.