Skip to content

Instantly share code, notes, and snippets.

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

Disable selinux in the podman machine

This allows /var/run/docker.sock to be mounted into containers (e.g. when using

$ 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 is fixed.
# Workaround ref:
# 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