步驟1.首先,讓我們首先確保您的系統是最新的。
sudo dnf clean all
sudo dnf update
步驟2.在CentOS 8上安裝Podman。
運行以下命令以在CentOS系統上安裝Podman:
sudo dnf install podman
檢查Podman的版本:
podman --version
步驟3.如何使用Podman。
現在Podman已安裝在我們的CentOS系統中,是時候開始使用它了:
# Pull image
$ podman pull ubuntu
$ podman pull centos
# List existing images
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/ubuntu latest 775349758637 3 weeks ago 66.6 MB
docker.io/library/alpine latest 965ea09ff2eb 5 weeks ago 5.82 MB
docker.io/library/centos latest 0f3e07c0138f 7 weeks ago 227 MB
要下載您喜歡的鏡像,只需使用以下語法:
podman pull image
例如,要下載Ubuntu鏡像,請運行:
podman pull ubuntu
至此,您已成功安裝Podman。A5互聯https://www.a5idc.net/