Skip to content

Instantly share code, notes, and snippets.

@jeff1evesque
Last active July 10, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeff1evesque/70dd7feea6cf9cec94cbc54458fe4da2 to your computer and use it in GitHub Desktop.
Save jeff1evesque/70dd7feea6cf9cec94cbc54458fe4da2 to your computer and use it in GitHub Desktop.
SSH into docker container
# step 1: build container
$ docker build -f docker/redis.dockerfile -t <image-alias> .
# step 2: run container
$ docker run -dt --name <container-name> <image-alias>
# step 3: unix based
$ docker exec -it <container-name> bash
root@cdaa90138643:/#
# step 3: windows
$ winpty docker exec -it <container-name> bash
root@cdaa90138643:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment