Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 481 Bytes

fleet.md

File metadata and controls

29 lines (21 loc) · 481 Bytes

#fleet

remote control

fleetctl --tunnel 10.10.10.10 journal apache.service

redis fleet examle

[Unit] 
Description=redis-1 
After=docker.service 
Requires=docker.service 
[Service] 
TimeoutStartSec=0 
ExecStartPre=-/usr/bin/docker rm redis-1 
ExecStart=/usr/bin/docker run --name redis-1 -p 1401:6379 redis 
ExecStop=/usr/bin/docker kill redis-1
[X-Fleet] 
Global=true

DOC

REFER: http://duffqiu.github.io/blog/2015/07/25/fleet-ha-service-trap/