Last active
July 10, 2016 16:35
-
-
Save jeff1evesque/70dd7feea6cf9cec94cbc54458fe4da2 to your computer and use it in GitHub Desktop.
SSH into docker container
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
# 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