Skip to content

Instantly share code, notes, and snippets.

@TBeijen
Last active December 17, 2022 07:06
Show Gist options
  • Save TBeijen/d262bac31d58c84e837c7ae89c579446 to your computer and use it in GitHub Desktop.
Save TBeijen/d262bac31d58c84e837c7ae89c579446 to your computer and use it in GitHub Desktop.
Podman tips & tricks

Various problems

VM time wrong after host sleep

Various ways this can manifest, examples:

  • AWS sts problems
  • Debian package list 'not valid yet': Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet
podman machine ssh sudo date --set $(date +'%Y-%m-%dT%H:%M:%S');

References:

Error statfs

Example: Error: statfs <my-workdir>: no such file or directory

Workaround:

podman machine stop
podman machine start

K3D

podman machine stop
podman machine set --rootful
podman machine start

Without rootfull running into errors related to tools container not being able to start and /var/run/docker.sock permissions (needs further invest.)

References:

Kind

export KIND_EXPERIMENTAL_PROVIDER=podman

References:

Host docker.sock shenanigans

# Does not seem to be needed after all
sudo /usr/local/bin/podman-mac-helper --help
sudo /usr/local/bin/podman-mac-helper install
sudo /usr/local/bin/podman-mac-helper uninstall

References:

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