doc: how to use podman

how to use podman

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Co-authored-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Matej Vasek 2021-06-24 14:29:15 +02:00 committed by GitHub
parent 4222e34aa6
commit e7b0c375d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -10,7 +10,7 @@ installed.
* [oc][oc] or [kubectl][kubectl] CLI
* [kn][kn] CLI
* [Docker][docker]
* [Docker][docker] or [Podman](podman.md)
[docker]: https://docs.docker.com/install/
[oc]: https://docs.openshift.com/container-platform/4.6/cli_reference/openshift_cli/getting-started-cli.html#cli-installing-cli_cli-developer-commands

16
docs/guides/podman.md Normal file
View File

@ -0,0 +1,16 @@
# Podman
Under Linux, it is possible to use [podman](https://podman.io/) instead of [docker](https://www.docker.com/).
In order to do this you need to run `podman` as a service. You can do this with the following command.
```
podman system service --time=0
```
This will serve the Docker API on a UNIX socket at `/run/user/{uid}/podman/podman.sock`.
Then set the environment variable `DOCKER_HOST` to the socket so `func` knows where to connect.
```
export DOCKER_HOST="unix:///run/user/$(id -u)/podman/podman.sock"
func build -v
```
Now you may use `func` as usual.