GuidesMultiple servers
Remove a server
Delete the services and datastores of the server, stop it, then clean what stays in Docker.
Delete. Delete the services and the datastores of the server.
1 / 3
This deletes data
The volumes 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 service and ferry db rm for each datastore.
Stop the server
ferryd stop --data-dir /var/lib/ferry-stagingRemove what is left under its prefix
These commands are for the name prefix staging.
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 stagingRemove the images by name, as above, not by image id. A server tags each image that it pulls under its own prefix: staging/web:dep-… for nginx:alpine, for example. A delete by id also deletes the original image and each other tag that shares it.