Change TLS args in Docker configuration example

The TLS args given in this example were misleading, because they were preventing the Docker daemon to listen on the port 2376 (even if the daemon still succeeds to start...).

The reason is very simple: when using `sudo ros tls gen --server ...`, the server and CA certificates will be stored in `/etc/docker/tls`. But their paths were given as relative paths, and not absolute paths, in the previous example.
This commit is contained in:
Alexandre Figura
2018-12-05 20:15:02 -08:00
committed by Denise
parent 20359b790e
commit ae1f0ec380
@@ -14,7 +14,12 @@ In your cloud-config, Docker configuration is located under the `rancher.docker`
rancher:
docker:
tls: true
tls_args: [--tlsverify, --tlscacert=ca.pem, --tlscert=server-cert.pem, --tlskey=server-key.pem, '-H=0.0.0.0:2376']
tls_args:
- "--tlsverify"
- "--tlscacert=/etc/docker/tls/ca.pem"
- "--tlscert=/etc/docker/tls/server-cert.pem"
- "--tlskey=/etc/docker/tls/server-key.pem"
- "-H=0.0.0.0:2376"
storage_driver: overlay
```