Skip to content

Instantly share code, notes, and snippets.

@aterga
Created March 17, 2020 00:43
Show Gist options
  • Save aterga/982d4bab3ade5fdf40bd2cdb79fdb5fc to your computer and use it in GitHub Desktop.
Save aterga/982d4bab3ade5fdf40bd2cdb79fdb5fc to your computer and use it in GitHub Desktop.
How to run Docker image and attach to it
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