Looking for extensive set of commands, refer
http://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
In summary, use below commands as specified in article
http://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
In summary, use below commands as specified in article
- Use
docker ps
to get the name of the existing container - Use the command
docker exec -it
to get a bash shell in the container{containername} /bin/bash - Generically, use
docker exec -it
to execute whatever command you specify in the container.{containername} {command}
running docker as root user
docker exec -it --user root {container id} /bin/bash
No comments:
Post a Comment