mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
ops: fix uninstall script to remove network and updater volume
This commit is contained in:
parent
b63c33d277
commit
ad31a985ea
|
|
@ -110,6 +110,14 @@ uninstall_nomad() {
|
|||
|
||||
echo "Containers should be stopped now."
|
||||
|
||||
# Remove the shared Docker network (may still exist if app containers were using it during compose down)
|
||||
echo "Removing project-nomad_default network if it exists..."
|
||||
docker network rm project-nomad_default 2>/dev/null && echo "Network removed." || echo "Network already removed or not found."
|
||||
|
||||
# Remove the shared update volume
|
||||
echo "Removing project-nomad_nomad-update-shared volume if it exists..."
|
||||
docker volume rm project-nomad_nomad-update-shared 2>/dev/null && echo "Volume removed." || echo "Volume already removed or not found."
|
||||
|
||||
# Try to stop the collect-disk-info script if it's running
|
||||
try_remove_disk_info_script
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user