Skip to content

Instantly share code, notes, and snippets.

@jesugmz
Last active February 18, 2017 23:01
Show Gist options
  • Save jesugmz/06886ce0b254b31d9abef64357ac0b3c to your computer and use it in GitHub Desktop.
Save jesugmz/06886ce0b254b31d9abef64357ac0b3c to your computer and use it in GitHub Desktop.
Get an interactive bash in Docker containers
# get CONTAINER_ID with 'docker ps'
docker exec -it <CONTAINER_ID> bash
# or with docker-compose
docker-compose exec <CONTAINER_NAME> bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment