forked from HawksRepos/PTS-Team
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MrDoobPG
authored
Oct 3, 2019
1 parent
6a6c573
commit ee076e5
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
containers=$(comm -12 <(docker ps -a -q | sort) <(docker ps -q | sort)) | ||
for container in $containers; | ||
for containers in $containers; | ||
do | ||
echo Stopping $container | ||
docker=$(docker stop $container) | ||
echo Stopping $containers | ||
docker=$(docker stop $containers) | ||
done | ||
|
||
sleep 9 | ||
|
||
for container in $containers; | ||
for containers in $containers; | ||
do | ||
echo Starting $container | ||
docker=$(docker start $container) | ||
echo Starting $containers | ||
docker=$(docker start $containers) | ||
done |