Answers for "execute docker commands from bash file"

2

docker bash command

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

execute docker shell

Follow these steps:

    Use docker ps to get the name of the existing container.
    Use the command docker exec -it <container name> /bin/bash to get a bash shell in the container.
    Or directly use docker exec -it <container name> <command> to execute whatever command you specify in the container.
Posted by: Guest on September-15-2021

Code answers related to "execute docker commands from bash file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language