Docker Cheat Sheet

Huge thank you to Frank for helping me devop.

Run these wherever the Dockerfile is


docker build -t $USER/$NAME:$TAG .


List images:

docker images

List running containers:

docker ps

Run Container

docker run -it $IMAGE_NAME -p $HOST:$DOCKER bash

Run Live

If $TAG is not specified, will use latest

docker run –name $APP_NAME -p $HOST:$DOCKER $IMAGE_NAME:$TAG

Docker Hub

Pushes image out

docker push $IMAGE_NAME:$TAG

docker pull $IMAGE_NAME:$TAG

If you made it this far, you should probably follow me on twitter. 🙂

This entry was posted in Hacking and tagged . Bookmark the permalink.

2 Responses to Docker Cheat Sheet

Leave a Reply

Your email address will not be published. Required fields are marked *