diff --git a/docs/deinstall.md b/docs/deinstall.md new file mode 100644 index 000000000..09954536b --- /dev/null +++ b/docs/deinstall.md @@ -0,0 +1,11 @@ +To remove mailcow: dockerized with all it's volumes, images and containers do: + +``` +docker-compose down -v --rmi all --remove-orphans +``` + +!!! info + - **-v** Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. + - **--rmi ** Remove images. Type must be one of: `all`: Remove all images used by any service. `local`: Remove only images that don't have a custom tag set by the `image` field. + - **--remove-orphans** Remove containsers for services not defined in the compose file. + - By default `docker-compose down` only removes currently active containers and networks devinded in the `docker-compose.yml`. diff --git a/mkdocs.yml b/mkdocs.yml index 54528d806..43b7b154a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -46,6 +46,7 @@ pages: - 'Blacklist / Whitelist': 'bl_wl.md' - 'Autodiscover / Autoconfig': 'autodiscover_config.md' - 'Disable Sender Addresses Verification': 'disable_sender_verification.md' + - 'Deinstall': 'deinstall.md' - 'Third party apps': - 'Roundcube': 'roundcube.md' - 'Portainer': 'portainer.md'