Skip to content

Instantly share code, notes, and snippets.

@sirius2k
Last active April 18, 2018 10:50
Show Gist options
  • Save sirius2k/d60bf1aadf901c66ddcead549acd9c46 to your computer and use it in GitHub Desktop.
Save sirius2k/d60bf1aadf901c66ddcead549acd9c46 to your computer and use it in GitHub Desktop.
Run docker image with bash shell
# Assuming an Ubuntu Docker image and there's no ENTRYPOINT
$ docker run -it <image> /bin/bash
# Assuming an Ubuntu Docker image and override ENTRYPOINT
$ docker run -it --entrypoint "/bin/bash" <image>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment