Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Last active July 4, 2019 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xander-miller/5543284667c0b8bdd3cb6a1b4cb806e8 to your computer and use it in GitHub Desktop.
Save xander-miller/5543284667c0b8bdd3cb6a1b4cb806e8 to your computer and use it in GitHub Desktop.
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