# Docker crash on activating TLS

**URL:** <https://forums.suse.com/t/docker-crash-on-activating-tls/881>\
**Category:** RancherOS\
**Created:** [November 5, 2015, 5:59pm UTC](https://forums.suse.com/t/docker-crash-on-activating-tls/881 "2015-11-05T17:59:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bastien\_Vigneron](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@Bastien\_Vigneron](https://forums.suse.com/u/Bastien_Vigneron)\
**Post date:** [November 5, 2015, 5:59pm UTC](https://forums.suse.com/t/docker-crash-on-activating-tls/881/1 "2015-11-05T17:59:12Z")

</div>

Hello,

On RancherOS 0.4.0, I’ve apply the method described here : [http://docs.rancher.com/os/configuration/setting-up-docker-tls/](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
```

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [November 5, 2015, 7:42pm UTC](https://forums.suse.com/t/docker-crash-on-activating-tls/881/2 "2015-11-05T19:42:57Z")

</div>

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

> <https://github.com/rancher/os/issues/624>
>
> Hi, I follow this doc to config TLS is fail. But, I use sudo docker daemon --log-opt max-size=25m --log-opt max-file=2 -s...

---

<div class="post-metadata">

**Author:** ![Bastien\_Vigneron](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@Bastien\_Vigneron](https://forums.suse.com/u/Bastien_Vigneron)\
**Post date:** [November 6, 2015, 8:38am UTC](https://forums.suse.com/t/docker-crash-on-activating-tls/881/3 "2015-11-06T08:38:40Z")

</div>

Ok perfect, sorry for double declaration then.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [November 6, 2015, 6:30pm UTC](https://forums.suse.com/t/docker-crash-on-activating-tls/881/4 "2015-11-06T18:30:16Z")

</div>


