Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.27 KB

podman.md

File metadata and controls

54 lines (40 loc) · 1.27 KB

Podman & Buildah by Redhat

Podman

  • manages containers without a daemon
  • non-root daemonless drop-in replacement for Docker
  • drop in replacement for Docker CLI command
yum install -y podman
podman <docker_command_args>
podman pull registry.access.redhat.com/ubi8/ubi
podman pull registry.access.redhat.com/ubi8/ubi-minimal
podman pull registry.access.redhat.com/ubi8/ubi-init
podman pull registry.access.redhat.com/ubi7/ubi
podman pull registry.access.redhat.com/ubi7/ubi-minimal
podman pull registry.access.redhat.com/ubi7/ubi-init

Use podman daemon as a Docker replacement:

sudo systemctl enable --now podman.socket
mkdir -p /etc/containers/containers.conf.d
echo 'service_timeout=0' > /etc/containers/containers.conf.d/timeout.conf
sudo ln -s /run/podman/podman.sock /var/run/docker.sock

or rootless:

systemctl --user enable --now podman.socket
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
export DOCKER_SOCK=$XDG_RUNTIME_DIR/podman/podman.sock

Buildah

https://github.com/containers/buildah

Buildah builds OCI images from files without Docker daemon:

  • without needing package manager in the image
  • can use Dockerfiles