Last active
May 28, 2018 02:30
-
-
Save Shidfar/f55606f32eba691a952fe3d45832b8b4 to your computer and use it in GitHub Desktop.
running bash in docker or in kubernetes
This file contains hidden or 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
# run bash inside the docker container | |
docker exec -it $containerid bash | |
# for example: | |
# $ psql -U $postgresuser | |
# run bash in pod | |
kubectl exec -it $podname -- /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment