Skip to content

Instantly share code, notes, and snippets.

Embed
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}

talentcloud-op

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

Lareval Stuff

https://stackoverflow.com/questions/45034581/laravel-5-4-cross-env-is-not-recognized-as-an-internal-or-external-command/45629368#45629368

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