Skip to content

Commit ad31a98

Browse files
committed
ops: fix uninstall script to remove network and updater volume
1 parent b63c33d commit ad31a98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/uninstall_nomad.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ uninstall_nomad() {
110110

111111
echo "Containers should be stopped now."
112112

113+
# Remove the shared Docker network (may still exist if app containers were using it during compose down)
114+
echo "Removing project-nomad_default network if it exists..."
115+
docker network rm project-nomad_default 2>/dev/null && echo "Network removed." || echo "Network already removed or not found."
116+
117+
# Remove the shared update volume
118+
echo "Removing project-nomad_nomad-update-shared volume if it exists..."
119+
docker volume rm project-nomad_nomad-update-shared 2>/dev/null && echo "Volume removed." || echo "Volume already removed or not found."
120+
113121
# Try to stop the collect-disk-info script if it's running
114122
try_remove_disk_info_script
115123

0 commit comments

Comments
 (0)