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
sambhav authored Jan 3, 2022
2 parents 7bdf0f8 + 251c664 commit 260eb1f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions data/podman/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@
```shell=zsh
ssh-add -k "$HOME/.ssh/podman-machine-default"
```
2. Configure `DOCKER_HOST` with the connection information:
2. Change default connection to use `root`:
```shell=zsh
podman system connection default podman-machine-default-root
```
> **Note**: `root` connection prevents needing to pass `--docker-host=inherit` on every `pack build`. \
> For more information, see issue [buildpacks/pack#1338](https://github.com/buildpacks/pack/issues/1338).
3. Configure `DOCKER_HOST` with the connection information:
```shell=zsh
export DOCKER_HOST="$(podman system connection ls --format="{{.URI}}" | grep root)"
```
**Tip**: put the commands into your shell init file (e.g `~/.zshrc`).
> **Tip**: put the commands into your shell init file (e.g `~/.zshrc`).

0 comments on commit 260eb1f

Please sign in to comment.