Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Last active July 4, 2019 14:24
Show Gist options
  • Select an option

  • Save xander-miller/5543284667c0b8bdd3cb6a1b4cb806e8 to your computer and use it in GitHub Desktop.

Select an option

Save xander-miller/5543284667c0b8bdd3cb6a1b4cb806e8 to your computer and use it in GitHub Desktop.

Revisions

  1. xander-miller revised this gist Jul 4, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    To restart a docker from the cli `docker-machine restart`

    Nukes all current Docker processes `docker system prune -a`
    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.

  2. xander-miller revised this gist Apr 17, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,8 @@ 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
  3. xander-miller revised this gist Apr 17, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,10 @@ To run a command in a container `docker exec {container_name} {command}`

    `talentcloud-op`

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

    Lareval Stuff

    npm install --global cross-env

    npm install --no-bin-links
  4. xander-miller revised this gist Mar 27, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,6 @@ 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`
    `talentcloud-op`

    run npm `docker exec -t talentcloud-op make npm-dev`
  5. xander-miller revised this gist Mar 27, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    To restart a docker from the cli `docker-machine restart`

    Nukes all current Docker processes `docker system prune -a`

    Restart Docker after System prune to clean things out completely.
  6. xander-miller revised this gist Mar 26, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,8 @@ 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 shell into a container `docker exec -it {container_name} sh`

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

    `talentcloud-op`
  7. xander-miller revised this gist Mar 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@ 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 nginx sh`
    To shell into a container `docker exec -it {container_name} sh`
  8. xander-miller revised this gist Mar 22, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,6 @@ Nukes all current Docker processes `docker system prune -a`

    Restart Docker after System prune to clean things out completely.

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

    To shell into a container `docker exec -it nginx sh`
  9. xander-miller revised this gist Mar 22, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Nukes all current Docker processes `docker system prune -a`

    Restart Docker after System prune to clean things out completely.

    Build before your up. `docker-compose build` `docker-compose up`
  10. xander-miller revised this gist Mar 22, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    Nukes all current Docker processes `docker system prune -a`
    Nukes all current Docker processes `docker system prune -a`

    Build before your up. `docker-compose build` `docker-compose up`
  11. xander-miller created this gist Mar 22, 2019.
    1 change: 1 addition & 0 deletions docker_sheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Nukes all current Docker processes `docker system prune -a`