$ export DOCKER_HOST=tcp://fnord.local:2376 DOCKER_TLS_VERIFY=1
$ docker ps
An error occurred trying to connect: Get https://fnord.local:2376/v1.21/containers/json: x509: certificate is valid for fnord, 192.168.23.23 , localhost, not fnord.local
$ ssh admin@fnord.local
# /sbin/setcfg global realm local -f /etc/config/smb.conf
# /etc/init.d/network.sh restart
# hostname -f
fnord.local
# cd $(dirname $(readlink /etc/init.d/container-station.sh))
# /etc/init.d/container-station.sh stop
# rm etc/docker/tls/*
# /etc/init.d/container-station.sh start
# cat etc/docker/tls/hostnames
fnord,192.168.23.23 , localhost
# echo AARGH
Hand-edit script/gen-docker-certs.sh
so it sets:
CERTHOSTNAMES="$(hostname -f),$(hostname -s),$(hostname -i)"
Then repeat a few steps:
# /etc/init.d/container-station.sh stop
# rm etc/docker/tls/*
# /etc/init.d/container-station.sh start
# cat etc/docker/tls/hostnames
fnord.local,fnord,192.168.23.23 , localhost,127.0.0.1
Better. Not sure where the 127.0.0.1
came from, but better.
That, copying the new
ca.pem
,cert.pem
, andkey.pem
, and these environment variables did the trick, ish:The problem now being the version lag: