Underminer
0
Q:

docker exec bash

docker exec -it [containerid/name] [shell]

#Example
docker exec -it fa80b69 bash
#if its an apline container use "sh" instead of "bash"
10
docker exec -it nginx /bin/bash
8
//For executing commands in the container
docker exec -it <CONTAINER_NAME> bash
5
sudo docker exec -it <container name> <command>
2
docker exec -i -t 0f4fe0b1f413 bash
0

Tags

New to Communities?

Join the community