---
title: "💭 add init hooks and exported bins · WaylonWalker/devtainer@2e4c6da"
description: "!https://github.com/WaylonWalker/devtainer/commit/2e4c6da537f5672209d1b3922fad754190aef938#diff-38878343c551520f8af2a3986e5f6085b03df197a56a92abc42a44b200f02..."
date: 2024-09-28
published: true
tags:
  - docker
  - podman
  - distrobox
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/WaylonWalker/devtainer/commit/2e4c6da537f5672209d1b3922fad754190aef938#diff-38878343c551520f8af2a3986e5f6085b03df197a56a92abc42a44b200f0264aR19" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/6b12b2c44f61b6aae41530a61e77341635725a79e7c39eb6c5c4f15082d4c174/WaylonWalker/devtainer/commit/2e4c6da537f5672209d1b3922fad754190aef938" alt="add init hooks and exported bins · WaylonWalker/devtainer@2e4c6da — 🐳 (dotfiles) My personal development docker container base image - add init hooks and exported bins · WaylonWalker/devtainer@2e4c6da" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">add init hooks and exported bins · WaylonWalker/devtainer@2e4c6da</div>
      <div class="embed-card-description">🐳 (dotfiles) My personal development docker container base image - add init hooks and exported bins · WaylonWalker/devtainer@2e4c6da</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


Today I learned that you can use init_hooks to access host machine commands from inside a distrobox container.  This is super handy for things that you cannot get to from inside the container and need ran outside (docker, podman, flatpak, xdg-open).

``` bash
init_hooks=ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/podman;
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
