I found that -
By default, when no option is provided to the
docker runcommand, the root process is started in the foreground. This means that the standard input, output, and error from the root process are attached to the terminal session.
So, what is the difference between $ docker container run -ait ubuntu & $ docker container run -it ubuntu?
When to use --attach with docker container run?