Last active
February 18, 2017 23:01
-
-
Save jesugmz/06886ce0b254b31d9abef64357ac0b3c to your computer and use it in GitHub Desktop.
Get an interactive bash in Docker containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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