FerryDocs

Remove a server

Delete the services and datastores of the server, stop it, then clean what stays in Docker.

Edit on GitHub

Delete. Delete the services and the datastores of the server.

1 / 3

This deletes data

The hold the datastores and the disks of the server. If you need them, back them up first.

Delete its services and datastores

Use ferry delete for each and ferry db rm for each .

Stop the server

Terminal
ferryd stop --data-dir /var/lib/ferry-staging

Remove what is left under its prefix

These commands are for the staging.

Terminal
docker ps -aq --filter label=ferry.instance=staging | xargs docker rm -f
docker volume ls -q --filter label=ferry.instance=staging | xargs docker volume rm
docker image ls --filter reference='staging/*' --format '{{.Repository}}:{{.Tag}}' | xargs docker rmi
docker network rm staging

On this page