Skip to content

Instantly share code, notes, and snippets.

@GuyHarwood
Last active February 28, 2018 17:04
Show Gist options
  • Save GuyHarwood/f0a47bf75305373b5623364dca0b9ec0 to your computer and use it in GitHub Desktop.
Save GuyHarwood/f0a47bf75305373b5623364dca0b9ec0 to your computer and use it in GitHub Desktop.
Common Docker Commands

Attach to a running container

where container ID is 07a2f64399Af

docker exec -i -t 07a2 /bin/sh

Build image from Dockerfile

docker build -t imageName .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment