forked from Spark/ssm-services
docker service
This commit is contained in:
parent
6c075e4169
commit
1c3cc01b36
14
init.d/docker
Executable file
14
init.d/docker
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
docker_dir='/home/docker'
|
||||
|
||||
service_command='/usr/local/sbin/docker'
|
||||
service_args="-g ${docker_dir} -d"
|
||||
|
||||
update() {
|
||||
watchman.stop && {
|
||||
wget "https://get.docker.io/builds/Linux/x86_64/docker-latest" -O "$service_command"
|
||||
}
|
||||
|
||||
watchman.start
|
||||
}
|
Loading…
Reference in New Issue
Block a user