Fly, Penguin!

I blog so I don't forget.

Docker, http and TLS

1 minute read #docker

Today seems to be “annoyme-day”.

This error message with docker:

$ docker push
Post http:///var/run/docker.sock/v1.19/images/ \
   /name/image/push?tag=: read unix /var/run/docker.sock: \
   connection reset by peer. Are you trying to connect to \
   a TLS-enabled daemon without TLS?

… does not necessarily mean that we use http:// instead of https://.

It can also mean that the docker service is not running:

$ systemctl status docker.service
 ‚óŹ docker.service - Docker Application Container Engine
   Loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Wed 2015-07-15 17:16:48 CEST; 15s ago
  Process: 48587 ExecStart=/usr/bin/docker td -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
 Main PID: 48587 (code=exited, status=1/FAILURE)

Took me 15 minutes.