Answers for "start docker from command line"

4

docker run command on container

sudo docker exec -it <container name> <command>
Posted by: Guest on July-04-2020
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 "start docker from command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language