要在Ubuntu上安装和配置Podman,请按照以下步骤进行操作:
sudo apt update
sudo apt upgrade
sudo apt install -y software-properties-common uidmap
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt update
sudo apt install -y podman
podman --version
sudo sed -i 's/EnvironmentFile=\/etc\/subuid/EnvironmentFile=\/etc\/subuid\nEnvironment="XDG_RUNTIME_DIR=\/run\/user\/$UID"/' /usr/lib/systemd/system/podman.socket
sudo systemctl --user enable podman.socket
sudo systemctl --user start podman.socket
sudo reboot
现在,您已经成功在Ubuntu上安装和配置了Podman。您可以使用podman
命令来管理容器和镜像。