Skip to content

Instantly share code, notes, and snippets.

@Shidfar
Last active May 28, 2018 02:30
Show Gist options
  • Save Shidfar/f55606f32eba691a952fe3d45832b8b4 to your computer and use it in GitHub Desktop.
Save Shidfar/f55606f32eba691a952fe3d45832b8b4 to your computer and use it in GitHub Desktop.
running bash in docker or in kubernetes
# 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