我已经使用apt成功地在Ubuntu上安装了Podman,当我这样做时,它正在运行:
service podman start
service podman status结果是:
podman.service - Podman API Service
Loaded: loaded (/lib/systemd/system/podman.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2022-09-23 08:19:43 CEST; 2s ago
TriggeredBy: ● podman.socket所以一切都很好。但似乎有些事不对劲,因为当我跑的时候:
podman system connection ls为了得到Podman使用的端口,我得到了一个空的响应。所以没有暴露端口。此外,每当我试图部署一个简单的容器时,我都会收到一条错误消息,所以肯定有问题。
有人能帮忙吗?
发布于 2022-09-27 16:42:17
你可以跑
podman info为了获得更多关于你安装的信息,
否则,如果您使用码头映像构建podman,我将使用以下步骤并能够运行所有podman操作:
构建podman映像
FROM ubuntu:20.04
RUN apt-get update -y
# install podman
ENV VERSION_ID=20.04
# Podman related package
RUN apt-get install -y curl wget gnupg2
RUN apt-get update -y && apt-get install curl wget gnupg2 -y && . ./etc/os-release && sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | apt-key add - && apt-get update -y && apt-get -y install podmandocker run -it --privileged podman:$TAG /bin/bash例如:
podman images --storage-opt mount_program=/usr/bin/fuse-overlayfshttps://stackoverflow.com/questions/73823747
复制相似问题