Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Last active September 28, 2022 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufhm/630f4850de1f9f2a696572dd1c85392d to your computer and use it in GitHub Desktop.
Save yusufhm/630f4850de1f9f2a696572dd1c85392d to your computer and use it in GitHub Desktop.
podman setup
# Allows for builds using `docker-compose build`.
export COMPOSE_DOCKER_CLI_BUILD=0

Disable selinux in the podman machine

This allows /var/run/docker.sock to be mounted into containers (e.g. when using https://github.com/pygmystack/pygmy)

$ podman machine ssh

# Inside the machine.
[root@localhost ~]# vi /etc/selinux/config
# Replace SELINUX=enforcing with SELINUX=disabled and save (:wq).
[root@localhost ~]# exit

# Restart the machine.
$ podman machine stop
$ podman machine start

Ref: containers/podman#13723 (comment)

Fix time drift in podman

podman machine ssh --username root date --set $(date -Iseconds)

Ref: containers/podman#11541 (comment)

# Podman override until https://github.com/containers/podman/issues/15580 is fixed.
# Workaround ref: https://github.com/containers/podman/issues/15580#issuecomment-1247840162
networks:
default:
# Comment lines below if using for the 1st time
external: true
name: full-network-name_default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment