A container is running and a technician needs to execute an interactive shell inside it. The container was started with 'docker run -d --name myapp myimage'. Which command will achieve this?
exec runs a new command in the running container; -it makes it interactive.
Why this answer
docker exec -it myapp /bin/bash runs an interactive shell inside the running container.