要在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
命令来管理容器和镜像。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>