Files
ssm-services/services/docker
T

13 lines
218 B
Plaintext
Raw Normal View History

2017-07-13 16:09:42 +03:00
#!/usr/bin/env ssm
2014-02-22 18:32:37 +04:00
#service_respawn='true'
2017-07-13 16:09:42 +03:00
service_command=( '/usr/bin/dockerd' -s overlay2 )
2014-02-22 18:32:37 +04:00
update() {
2017-07-13 16:09:42 +03:00
stop && {
2014-02-22 18:32:37 +04:00
wget "https://get.docker.io/builds/Linux/x86_64/docker-latest" -O "$service_command"
}
2017-07-13 16:09:42 +03:00
start
2014-02-22 18:32:37 +04:00
}