【问题标题】:Podman machine start on UbuntuPodman 机器在 Ubuntu 上启动
【发布时间】:2022-06-17 21:03:35
【问题描述】:

我在 podman 启动机器时遇到问题 我正在使用 ubuntu 20.04 服务器 我是这样安装podman的

echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/Release.key" | sudo apt-key add -
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install podman

podman 版本是

podman version
Version:      3.4.2
API Version:  3.4.2
Go Version:   go1.16.6
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

我需要启动 podman 机器,但出现错误

我是这样创作的

root@ubuntu:# podman machine init
Extracting compressed file
root@ubuntu:# podman machine list
NAME                     VM TYPE     CREATED         LAST UP         CPUS        MEMORY      DISK SIZE
podman-machine-default*  qemu        28 seconds ago  28 seconds ago  1           2.147GB     10.74GB

当我尝试启动我拥有的机器时,它看起来很好

root@ubuntu:# podman machine start
Error: unable to start host networking: "could not find \"gvproxy\" in one of [/usr/local/libexec/podman /usr/local/lib/podman /usr/libexec/podman /usr/lib/podman]"

但我认为我的 podman 安装没有问题,因为我可以运行容器

root@ubuntu:# podman run hello-world
Resolved "hello-world" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/hello-world:latest...
Getting image source signatures
Copying blob 2db29710123e done
Copying config feb5d9fea6 done
Writing manifest to image destination
Storing signatures

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

【问题讨论】:

    标签: linux docker ubuntu podman


    【解决方案1】:

    我有同样的问题,一个新的 ubuntu 22.04

    apt update
    apt install podman
    
    podman machine init
    podman machine list
    NAME                     VM TYPE     CREATED      LAST UP      CPUS        MEMORY      DISK SIZE
    podman-machine-default*  qemu        3 hours ago  3 hours ago  1           2.147GB     10.74GB
    podman machine start
    Error: unable to start host networking: "could not find \"gvproxy\" in one of [/usr/local/libexec/podman /usr/local/lib/podman /usr/libexec/podman /usr/lib/podman]"
    

    有什么想法吗?谢谢,迈克

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-02
      • 2018-08-08
      • 1970-01-01
      • 2020-04-30
      相关资源
      最近更新 更多