Install Podman with --mount=type=cache support from source Ubuntu LTS 22.04

Install Podman with --mount=type=cache support from source Ubuntu LTS 22.04

Based on official docs: https://podman.io/getting-started/installation#building-from-scratch

podman version 4 supports --mount type=cache for each container layer , however need to build podman from source to get that

# Install build deps:
sudo apt-get install \
  btrfs-progs \
  git \
  golang-go \
  go-md2man \
  iptables \
  libassuan-dev \
  libbtrfs-dev \
  libc6-dev \
  libdevmapper-dev \
  libglib2.0-dev \
  libgpgme-dev \
  libgpg-error-dev \
  libprotobuf-dev \
  libprotobuf-c-dev \
  libseccomp-dev \
  libselinux1-dev \
  libsystemd-dev \
  pkg-config \
  runc \
  uidmap
  
  
  # Run make:
  make
  
  # Run make install
  sudo make install
  
  # Check version
  podman --version
  podman version 4.3.0-dev
  
Collect recurring payments with Subscribie - Try Now