Answers for "docker run bash"

19

docker access container

docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpine
Posted by: Guest on May-12-2020
10

docekr enter container

docker exec -it [container-id] bash
Posted by: Guest on July-30-2020
11

how to bash into docker container

docker exec -it nginx /bin/bash
Posted by: Guest on May-26-2020
1

docker bash command

docker exec -it <container> bash
Posted by: Guest on April-05-2021
4

docker run command on container

sudo docker exec -it <container name> <command>
Posted by: Guest on July-04-2020
0

how to execute docker command in shell script

echo -n "enter type compose command ? "
read type

[[ "$type" ]] && docker-compose $type;
Posted by: Guest on February-07-2021

Browse Popular Code Answers by Language