Skip to content

Commit 4814e87

Browse files
committed
Add example with containers on Podman Engine
Use the docker client with DOCKER_HOST and compatibility socket, instead of messing around with podman-remote and CONTAINER_HOST. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 75221d6 commit 4814e87

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

website/content/en/docs/examples/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ docker run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
3838
```
3939
{{% /tab %}}
4040

41+
{{% tab header="Podman" %}}
42+
```bash
43+
limactl start template://podman
44+
export DOCKER_HOST=$(limactl list podman --format 'unix://{{.Dir}}/sock/podman.sock')
45+
docker run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
46+
```
47+
{{% /tab %}}
48+
4149
{{% tab header="Kubernetes" %}}
4250
```bash
4351
limactl start template://k8s

0 commit comments

Comments
 (0)