Created
March 17, 2020 00:43
-
-
Save aterga/982d4bab3ade5fdf40bd2cdb79fdb5fc to your computer and use it in GitHub Desktop.
How to run Docker image and attach to it
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
docker build -t IMAGE_NAME | |
docker run -it -d --name INSTANCE_NAME IMAGE_NAME | |
docker exec -it INSTANCE_NAME /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment