# Expose binary to console

**URL:** <https://forums.suse.com/t/expose-binary-to-console/8457>\
**Category:** RancherOS\
**Created:** [January 30, 2018, 10:50pm UTC](https://forums.suse.com/t/expose-binary-to-console/8457 "2018-01-30T22:50:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yannick\_Gouez](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@Yannick\_Gouez](https://forums.suse.com/u/Yannick_Gouez)\
**Post date:** [January 30, 2018, 10:50pm UTC](https://forums.suse.com/t/expose-binary-to-console/8457/1 "2018-01-30T22:50:18Z")

</div>

When creating a custom service, what’s the best strategy to expose binaries from the service container to the console ?

I would like to achieve something similar to the command-volumes container.

---

<div class="post-metadata">

**Author:** ![Yannick\_Gouez](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@Yannick\_Gouez](https://forums.suse.com/u/Yannick_Gouez)\
**Post date:** [January 31, 2018, 6:28pm UTC](https://forums.suse.com/t/expose-binary-to-console/8457/2 "2018-01-31T18:28:38Z")

</div>

After some experiments I realized it was not possible with docker and my understanding of what the command-volume container did was probably wrong.  
The best option is probably to build a custom console.  
Leaving this topic in place just in case.

---

<div class="post-metadata">

**Author:** ![SvenDowideit](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/svendowideit/32/2159_2.png) [@SvenDowideit](https://forums.suse.com/u/SvenDowideit)\
**Post date:** [February 1, 2018, 12:22am UTC](https://forums.suse.com/t/expose-binary-to-console/8457/3 "2018-02-01T00:22:53Z")

</div>

it _is_ possible, but perhaps the inverse of what you’re thinking 🙂

in the zfs service, we add access to allow the currently running console to the zfs mgmt tools - which are actually run in the zfs container - basically, we link  
in a script which then uses `docker exec`

see the use of `wonka.sh` in [https://github.com/rancher/os-services/tree/master/images/20-zfs](https://github.com/rancher/os-services/tree/master/images/20-zfs)

I thought we’d blogged about it, but I can’t find anything.

---

<div class="post-metadata">

**Author:** ![Yannick\_Gouez](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@Yannick\_Gouez](https://forums.suse.com/u/Yannick_Gouez)\
**Post date:** [February 5, 2018, 5:20pm UTC](https://forums.suse.com/t/expose-binary-to-console/8457/4 "2018-02-05T17:20:57Z")

</div>

Thanks ! I love that approach.  
Does the setup\_wonka.sh get executed in the console the moment you install the service ?  
Is there something similar with the default services ? I’m trying to bundle my custom services in the install.
