I’m trying to pass some flags to the docker drone agent, namely to use my own --log-driver
.
I see I can customize the instance using https://autoscale.drone.io/configure/cloud-init/ but I don’t see a config block that lets me configure the docker command the autoscaler uses to bring up the agent container.
Is this something that’s possible?
Only way I can think of right now is to use cloud-init to override the default daemon config to use the log driver I want.
- path: /etc/docker/daemon.json
content: |
{
"hosts": [ "0.0.0.0:2376", "unix:///var/run/docker.sock" ],
"tls": true,
"tlsverify": true,
"tlscacert": "/etc/docker/ca.pem",
"tlscert": "/etc/docker/server-cert.pem",
"tlskey": "/etc/docker/server-key.pem",
"log-driver": "mydriver",
"log-opts": {
"tag": "myloggintag"
}
}