Skip to content

Instantly share code, notes, and snippets.

@shairontoledo
Created November 12, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shairontoledo/f1782b3cd91e8c7bd706319a482a3ebf to your computer and use it in GitHub Desktop.
Save shairontoledo/f1782b3cd91e8c7bd706319a482a3ebf to your computer and use it in GitHub Desktop.
Bash access inside of Docker container in AWS Elasticbeanstalk
ssh -t ec2-user@REPLACE_HERE_YOU_HOST 'sudo docker exec -it "$(sudo docker ps --format {{.ID}})" bash'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment