Docker crash on activating TLS

Hello,

On RancherOS 0.4.0, I’ve apply the method described here : http://docs.rancher.com/os/configuration/setting-up-docker-tls/ to activate TLS.

But when trying to restart the docker service :

sudo system-docker restart docker

Docker never restart, even after a reboot.
I obtain the following log in /var/log/messages :

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/rancher/docker-from-scratch.getValue(0x10, 0xc20800a020, 0x11, 0x11, 0x0, 0x0)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/scratch.go:310 +0x130
github.com/rancher/docker-from-scratch.touchSockets(0xc20800a020, 0x11, 0x11, 0x0, 0x0)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/scratch.go:383 +0x195
github.com/rancher/docker-from-scratch.prepare(0xc2080a80b0, 0x7ffe86c06e87, 0xf, 0xc20800a020, 0x11, 0x11, 0x0, 0x0)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/scratch.go:437 +0x1e2
github.com/rancher/docker-from-scratch.runOrExec(0xc2080a80b0, 0x7ffe86c06e87, 0xf, 0xc20800a020, 0x11, 0x11, 0xad0d90, 0x0, 0x0)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/scratch.go:545 +0x84
github.com/rancher/docker-from-scratch.LaunchDocker(0xc2080a80b0, 0x7ffe86c06e87, 0xf, 0xc20800a020, 0x11, 0x11, 0x11, 0x0, 0x0)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/scratch.go:562 +0xc1
github.com/rancher/docker-from-scratch/main.Main()
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/rancher/docker-from-scratch/main/main.go:33 +0x3db
github.com/docker/docker/pkg/reexec.Init(0xaf9810)
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/docker/docker/pkg/reexec/reexec.go:26 +0x71
main.main()
	/go/src/github.com/rancher/os/main.go:58 +0x259

goroutine 5 [syscall]:
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
	/usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 6 [chan send]:
github.com/docker/libcompose/cli/logger.generateColors()
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/docker/libcompose/cli/logger/colors.go:27 +0x191
created by github.com/docker/libcompose/cli/logger.init·1
	/go/src/github.com/rancher/os/Godeps/_workspace/src/github.com/docker/libcompose/cli/logger/colors.go:33 +0x25

Yep, this is a known issue and we have a PR already created to fix the issue in.

Ok perfect, sorry for double declaration then.