Skip to content

Commit

Permalink
Merge pull request #456 from buildpacks/feature/podman-root-conn
Browse files Browse the repository at this point in the history
Add missing podman connection settings and info
  • Loading branch information
samj1912 committed Jan 3, 2022
1 parent 9a62d46 commit 889cb78
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/app-developer-guide/building-on-podman/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,19 @@ <h5 id="start">Start</h5>
<li>Add the SSH key for the podman VM to your keychain:
<pre tabindex="0"><code class="language-shell=zsh" data-lang="shell=zsh">ssh-add -k &quot;$HOME/.ssh/podman-machine-default&quot;
</code></pre></li>
<li>Change default connection to use <code>root</code>:
<pre tabindex="0"><code class="language-shell=zsh" data-lang="shell=zsh">podman system connection default podman-machine-default-root
</code></pre><blockquote>
<p><strong>Note</strong>: <code>root</code> connection prevents needing to pass <code>--docker-host=inherit</code> on every <code>pack build</code>. <br>
For more information, see issue <a href="https://github.com/buildpacks/pack/issues/1338">buildpacks/pack#1338</a>.</p>
</blockquote>
</li>
<li>Configure <code>DOCKER_HOST</code> with the connection information:
<pre tabindex="0"><code class="language-shell=zsh" data-lang="shell=zsh">export DOCKER_HOST=&quot;$(podman system connection ls --format=&quot;{{.URI}}&quot; | grep root)&quot;
</code></pre><strong>Tip</strong>: put the commands into your shell init file (e.g <code>~/.zshrc</code>).</li>
</code></pre><blockquote>
<p><strong>Tip</strong>: put the commands into your shell init file (e.g <code>~/.zshrc</code>).</p>
</blockquote>
</li>
</ol>

</div>
Expand Down

0 comments on commit 889cb78

Please sign in to comment.