Skip to content

Instantly share code, notes, and snippets.

@timhughes
Last active November 2, 2021 01:03
Show Gist options
  • Save timhughes/4db5f8aac2b60c8eb66f1b34945d0659 to your computer and use it in GitHub Desktop.
Save timhughes/4db5f8aac2b60c8eb66f1b34945d0659 to your computer and use it in GitHub Desktop.
Docker service for Podman

Replacing docker with Podman

This is all done as a user.

Add insecure registry if you need to use something internal

cat <<EOF> ~/.config/containers/registries.conf
unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]

[[registry]]
location = "gitlab.example.com:8443"
insecure = true
EOF

Start podman api service

podman system service --time 0

Getting docker compatable tooling running when it needs the socket

export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment