# Setting /hab/sup/default/CTL\_SECRET using Habitat Packages exported to Docker containers

**URL:** <https://discourse.chef.io/t/setting-hab-sup-default-ctl-secret-using-habitat-packages-exported-to-docker-containers/18600>\
**Category:** Habitat Help\
**Created:** [September 19, 2019, 11:26pm UTC](https://discourse.chef.io/t/setting-hab-sup-default-ctl-secret-using-habitat-packages-exported-to-docker-containers/18600 "2019-09-19T23:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmott](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kmott/32/2989_2.png) [@kmott](https://discourse.chef.io/u/kmott)\
**Post date:** [September 19, 2019, 11:26pm UTC](https://discourse.chef.io/t/setting-hab-sup-default-ctl-secret-using-habitat-packages-exported-to-docker-containers/18600/1 "2019-09-19T23:26:14Z")

</div>

Hello,

I have been trying to set the value of /hab/sup/default/CTL\_SECRET for a Habitat package I’ve exported as Docker container, but I can’t seem to find a way to do it.

If I set `HAB_CTL_SECRET` environment variable, the various `hab` client commands will pick it up fine, but since it wasn’t set with the same value when the supervisor started, I get `Secret Mismatch`.

Is there a way to do this? Here’s what I think I want:

`docker run -it hub.docker.com/origin/mypkg run --listen-ctl 0.0.0.0:9632 --ctl-secret dead-beef`
