Answers for "how to run command inside docker container"

11

how to bash into docker container

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

docker execute command in container

# Windows Powershell | CMD
# Make sure open as administrator
docker exec <container name> <command>
# Linux
sudo docker exec -it <container name> <command>
Posted by: Guest on September-20-2021
4

docker run command on container

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

Code answers related to "how to run command inside docker container"

Browse Popular Code Answers by Language