Skip to content

Instantly share code, notes, and snippets.

@danielrosehill
Created May 1, 2024 04:24
Show Gist options
  • Select an option

  • Save danielrosehill/9eee55b5a35a3bd394013d2ffb9ff881 to your computer and use it in GitHub Desktop.

Select an option

Save danielrosehill/9eee55b5a35a3bd394013d2ffb9ff881 to your computer and use it in GitHub Desktop.
Get A Shell On A Docker Container

Firstly get the ID of the container you want to SSH into:

docker ps -a

Then you can run

docker exec -t -i mycontainer /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment