Visit your container

Commands

docker container run --name c1 --rm -d nginx:latest
docker container exec c1 cat /etc/nginx/nginx.conf
docker container exec -it c1 sh

Detaching and attaching

Interacting with containers