# HELP: How do I get docker TLS to work?

**URL:** <https://forums.suse.com/t/help-how-do-i-get-docker-tls-to-work/5084>\
**Category:** Rancher 1.x\
**Created:** [January 4, 2017, 4:11pm UTC](https://forums.suse.com/t/help-how-do-i-get-docker-tls-to-work/5084 "2017-01-04T16:11:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linux-dude](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@Linux-dude](https://forums.suse.com/u/Linux-dude)\
**Post date:** [January 4, 2017, 4:11pm UTC](https://forums.suse.com/t/help-how-do-i-get-docker-tls-to-work/5084/1 "2017-01-04T16:11:22Z")

</div>

I’m (desperately) trying to get rancher to connect to my (RHEL) docker host using using TLS certificates, and cannot find the “official way”. If I manually edit the rancher/agent image by putting keys, cert, and ca.crt in /root/.docker/, add export DOCKER\_TLS\_VERIFY=1 to both /run.sh and /root/.profile I can get “docker ps” to not hang when I get into the container. (Though I still have issues).

Can anybody give me a hint as to how to setup rancher to work with docker TLS? I cannot find documentation, though I can see how to enable this on rancherOS, or the web server for rancher.

Edit: This looks like it is as simple as either 1) getting the variable DOCKER\_TLS\_VERIFY set in child containers or 2) finding the built-in setting for host TLS (which I cannot find)!!
