Skip to content

Instantly share code, notes, and snippets.

@tylertadej tylertadej/docker-cli.md
Last active Aug 30, 2018

Embed
What would you like to do?

Docker cheat sheet

# bash into container
docker exec -it [container-id] bash

# exclude image from build
docker-compose up --scale serviceToNotRun=0

# kill all containers
docker kill $(docker ps -q)

# remove untagged images (usually fixes 'no space left on device')
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.