Skip to content

Instantly share code, notes, and snippets.

@antonpegov
Created December 4, 2022 16:54
Show Gist options
  • Save antonpegov/3dfeb2d427da55474adee518f4c2df6c to your computer and use it in GitHub Desktop.
Save antonpegov/3dfeb2d427da55474adee518f4c2df6c to your computer and use it in GitHub Desktop.

Revisions

  1. antonpegov created this gist Dec 4, 2022.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Stop the container(s) using the following command:
    docker-compose down

    # Delete all containers using the following command:
    docker rm -f $(docker ps -a -q)

    # Delete all volumes using the following command:
    docker volume rm $(docker volume ls -q)

    # Restart the containers using the following command:
    docker-compose up -d