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