Skip to content

Commit 22fa18a

Browse files
author
Henry Mollman
committed
added comment to swarm restart command
1 parent 32588a7 commit 22fa18a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/container.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ container::start() {
139139

140140
# swarm should be started last so we know everything is up
141141
backoff container::_start_swarm_container
142-
docker ps | awk '/swarm/ { print $1 }' | xargs docker restart
142+
# currently @henrymollman does not understand why restarting swarm works
143+
# but without this line docker-listener will time out getting events
144+
# and the stream will close. this is an intermittent error however
145+
docker restart swarm
143146
}
144147

145148
# Stops all dock container services

0 commit comments

Comments
 (0)