What are the safe to delete volumes?

Sorry for this silly question, but beside greenbone-community-container_psql_data_vol, what other volumes are crucial and shouldn’t be deleted or otherwise I’d lose my data and configurations? I’m asking this because I have been having some random issues since I simply updated my docker compose file and pointed it to the new repository. And as a part of my ongoing troubleshooting, I’m thinking to delete volumes -that could be deleted- that contained older data, perhaps they are causing the issues I’m having, then let them be created again cleanly.

These are the volumes:

greenbone-community-container_cert_data_vol
greenbone-community-container_data_objects_vol
greenbone-community-container_gpg_data_vol
greenbone-community-container_gvmd_data_vol
greenbone-community-container_gvmd_socket_vol
greenbone-community-container_notus_data_vol
greenbone-community-container_openvas_data_vol
greenbone-community-container_openvas_log_data_vol
greenbone-community-container_ospd_openvas_socket_vol
greenbone-community-container_psql_data_vol
greenbone-community-container_psql_socket_vol
greenbone-community-container_redis_socket_vol
greenbone-community-container_scap_data_vol
greenbone-community-container_vt_data_vol

Thank you

This volume contains the postgresql data. When removing it you will loose all your data including user accounts etc. pp.

All other volumes are safe to be deleted because their data is recreated on startup. Of course you should only remove a volume when the container/service using it is stopped.

A description of all containers can be found at https://greenbone.github.io/docs/latest/22.4/container/index.html#description

4 Likes