Skip to content

Instantly share code, notes, and snippets.

@technolo-g
Last active August 29, 2015 14:12
Show Gist options
  • Save technolo-g/dbc1a1445f1c7215b6ae to your computer and use it in GitHub Desktop.
Save technolo-g/dbc1a1445f1c7215b6ae to your computer and use it in GitHub Desktop.
TLS Issue

CLI Output

[14:56:23 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[14:57:53 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ docker run -d -t ubuntu:latest /bin/bash
342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4
FATA[0000] Error response from daemon: Post https://dockerhost01:2376/v1.16/containers/342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4/start: x509: certificate signed by unknown authority
[14:57:59 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
342e581c14c6        ubuntu:latest       "/bin/bash"         3 seconds ago                                               dockerhost01/suspicious_pasteur

[15:00:05 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ env | grep DOCKER
DOCKER_HOST=tcp://dockerswarm01:2376
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/Users/mbajor/Dev/docker-swarm/master/tls

Swarm logs

root@dockerswarm01:~# tail -f /var/log/upstart/docker_swarm.log
INFO[0000] Listening for HTTP on tcp (0.0.0.0:2376)
INFO[0064] GET /v1.16/containers/json?all=1
INFO[0070] POST /v1.16/containers/create
INFO[0070] event -> status: "create" from: "ubuntu:latest" id: "342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4" node: "dockerhost01"
INFO[0070] POST /v1.16/containers/342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4/start
ERRO[0070] Post https://dockerhost01:2376/v1.16/containers/342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4/start: x509: certificate signed by unknown authority
INFO[0073] GET /v1.16/containers/json?all=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment