Skip to content

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.

License

Notifications You must be signed in to change notification settings

natthasath/demo-docker-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎉 Demo Docker SSH

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.

version rating uptime

🔔 Generate SSH Key

./ssh-keygen.sh

🏆 Run

docker-compose up -d

👉🏻 Try it out

ssh -i id_rsa sshuser@localhost -p 2222

About

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages