Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b5882629
Commit
b5882629
authored
Feb 22, 2016
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21703 from dchen1107/test
Make sure docker is properly shutdown before startup.
parents
6a199706
6c5f07d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
docker-checker.sh
cluster/saltbase/salt/supervisor/docker-checker.sh
+8
-2
No files found.
cluster/saltbase/salt/supervisor/docker-checker.sh
View file @
b5882629
...
...
@@ -19,10 +19,16 @@
# which in turn restarts docker.
/etc/init.d/docker stop
# Make sure docker gracefully terminated before start again
while
pidof docker
>
/dev/null
;
do
echo
"waiting clean shutdown"
sleep
10
done
/etc/init.d/docker start
echo
"waiting
a minute
for startup"
sleep
6
0
echo
"waiting
30s
for startup"
sleep
3
0
while
true
;
do
if
!
sudo timeout
10 docker version
>
/dev/null
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment