Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Docker Cheat Sheet

To restart a docker from the cli docker-machine restart

Removes images and containers. (best to stop all containers first) docker system prune -a

Removes all inactive volumes docker volume prune

Restart Docker after System prune to clean things out completely.

Build before your up. docker-compose build docker-compose up

To shell into a container docker exec -it {container_name} sh

To run a command in a container docker exec {container_name} {command}


run npm docker exec -t talentcloud-op make npm-dev

Lareval Stuff

npm install --global cross-env

npm install --no-bin-links

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