Im trying to run the docker command using the below command but it does not take me to the interactive mode.
docker container run -d -it --privileged centos
After starting your container, you can use
docker exec -it your_container_name /bin/bash
command to connect container's terminal. (assuming container's image includes /bin/bash).
docker exec -it your_container_name bash
Feb 11, 2020 at 10:40
docker runman page, you'll note that-dmeans--detach("run the container in the background...")