Skip to content

docs: update podman guide - #1650

Open
DaniD3v wants to merge 1 commit into
k3d-io:mainfrom
DaniD3v:main
Open

docs: update podman guide#1650
DaniD3v wants to merge 1 commit into
k3d-io:mainfrom
DaniD3v:main

Conversation

@DaniD3v

@DaniD3v DaniD3v commented Mar 1, 2026

Copy link
Copy Markdown

This PR updates the documentation on using k3d with podman.

The previous documentation was confusing and did simply not work.
This is reflected by the open github issues of non-working podman configs.

TODO:

  • Someone has to cross-verify that these instructions work
  • Update MacOS section

Open Questions:

  • Should we add instructions for init systems other than systemd?

Should I re-add the section on remote podman?

The main reason the old docs were unreadable to me is due to the DOCKER_HOST and DOCKER_SOCK clutter. If I have some very basic experience with podman/docker I will know to set those variables as they are not tooling specific. Moreover the DOCKER_SOCK variable is not even used.

MacOS section

I also think the MacOS section should be reduced. The guide clearly explains how to set delegate cpuset for systemd users so mac users should be able to follow along. Users that want to use k3d have probably already setup podman and a general setup guide is out of scope.

I cannot verify changes to the macOS section tho, so I left them untouched for now.

--default-network for creating registries

I understand the necessity regarding extra config for rootless kubelet and cgroup v2 delegation but I think this should simply use the podman network per default if it is detected. Also why is the --default-network parameter only there for the registry create subcommand but not for the options in cluster create.

#1605 seems to be about this, too

Backport?

Since its only docs related this PR should be back-ported.
The changes were tested on the latest stable version anyway.

Some of these open questions are not specific to this PR. I can open separate issues for them so that this can get merged quickly.

Clarification on whether cgroup v1 is supported?

There is an open issue because cgroup v1 doesn't work.
I personally can't test that but we should specify whether it is even supported or not?

#1439

Podman/ at least rootless docker should have first-class support

K3d is clearly more useful when running without root. Why not make it the default/ at least officially supported.

For dev rootless is simply superior:
no sudo for kubectl (the config gets merged into root when using sudo k3d cluster create)
you can run something like tilt with k3d and properly.
devs that don't have root access can use k3d.

Close

Please close your resolved issues!
Open issues also serve as documentation the fact that there's so many open ones makes the situation even worse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant