feat: self-update of master and agents (#15)
This commit is contained in:
@@ -883,6 +883,7 @@ func agentSnippet(cfg Config, token string) string {
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# - /path/to/stacks:/path/to/stacks # mount each stacks directory at the same path, read-write
|
||||
# (also this agent's own stack directory, or it cannot update itself)
|
||||
# - /root/.docker/config.json:/docker-config/config.json:ro
|
||||
`, cfg.AgentImage, cfg.AgentURL, cfg.MasterKey, token)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user