Skip to content

Commit

Permalink
Merge pull request #805 from alphagov/ChrisBAshton-patch-1
Browse files Browse the repository at this point in the history
Document the "get back to clean slate" option
  • Loading branch information
ChrisBAshton authored Nov 28, 2024
2 parents ff333f8 + a9f1b7a commit 63c9286
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/how-tos.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

👉 [Check the troubleshooting guide if you have a problem.](troubleshooting.md#installation)

## How to: get back to a clean slate

If you encounter an issue with your Docker setup and you've already exhausted all other ideas, here's a quick one-liner that stops and removes absolutely everything. You can then follow the govuk-docker README instructions for `make`-ing your app again.

```
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q) -f && docker volume prune && docker container prune && docker image prune && docker network prune && docker system prune --all --volumes
```

## How to: reduce typing with shortcuts

Typing the [full commands](../README.md#usage) is likely to get tiring. We've added a couple of lightweight helper scripts alongside govuk-docker, which figure out the application you're running based on the name of the current directory.
Expand Down

0 comments on commit 63c9286

Please sign in to comment.