Skip to content

Commit e24160f

Browse files
committed
Don't destroy the network on dsh stop - network id changes and containers need re-associating.
1 parent 18e3440 commit e24160f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dsh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ dsh_stop() {
103103

104104
notice "Stopping containers."
105105
docker-compose stop
106+
}
107+
108+
# Command: ./dsh stop
109+
# Stops project, then takes down containers and removes volumes if possible.
110+
dsh_purge() {
111+
dsh_stop
106112
if docker network ls | grep "\s${PROJECT}_default" > /dev/null; then
107113
notice "Disconnecting nginx proxy from network."
108114
set +e
@@ -111,12 +117,6 @@ dsh_stop() {
111117
docker network rm ${PROJECT}_default
112118
set -e
113119
fi
114-
}
115-
116-
# Command: ./dsh stop
117-
# Stops project, then takes down containers and removes volumes if possible.
118-
dsh_purge() {
119-
dsh_stop
120120
notice "Taking down containers, removing volumes if possible."
121121
set +e
122122
docker-compose down -v

0 commit comments

Comments
 (0)