2

我意识到 podman-compose 仍在开发中。一旦我将 Poweredge 服务器上的 Debian 替换为 CentOS8 作为我 homelab 的一部分,我将用 podman 替换我的 docker 堆栈。现在我只是在我的 Fedora 机器上测试/玩 podman。

操作系统:Fedora 32 内核:5.6.12-300.fc32.x86_64 PODMAN:1.9.2 PODMAN-COMPOSE:0.1.5

问题: podman-compose 失败,我无法确定原因。

这是我的 docker-compose.yml:

version: "2.1"
services:
  deluge:
    image: linuxserver/deluge
    container_name: deluge
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
#      - UMASK_SET=022 #optional
#      - DELUGE_LOGLEVEL=error #optional
    volumes:
      - /home/mike/test/deluge:/config
      - /home/mike/Downloads:/downloads
    restart: unless-stopped

当我运行podman-compose up这是输出:

[mike@localhost test]$ podman-compose up
podman pod create --name=test --share net
ce389be26589efe4433db15d875844b2047ea655c43dc84dbe49f69ffabe867e
0
podman create --name=deluge --pod=test -l io.podman.compose.config-hash=123 -l io.podman.compose.project=test -l io.podman.compose.version=0.0.1 -l com.docker.compose.container-number=1 -l com.docker.compose.service=deluge --network host -e PUID=1000 -e PGID=1000 -e TZ=America/New_York --mount type=bind,source=/home/mike/test/deluge,destination=/config --mount type=bind,source=/home/mike/Downloads,destination=/downloads --add-host deluge:127.0.0.1 --add-host deluge:127.0.0.1 linuxserver/deluge
Trying to pull registry.fedoraproject.org/linuxserver/deluge...
  manifest unknown: manifest unknown
Trying to pull registry.access.redhat.com/linuxserver/deluge...
  name unknown: Repo not found
Trying to pull registry.centos.org/linuxserver/deluge...
  manifest unknown: manifest unknown
Trying to pull docker.io/linuxserver/deluge...
Getting image source signatures
Copying blob a54f3db92256 done  
Copying blob c114dc480980 done  
Copying blob d0d29aaded3d done  
Copying blob fa1dff0a3a53 done  
Copying blob 5076df76a29a done  
Copying blob a40b999f3c1e done  
Copying config 31fddfa799 done  
Writing manifest to image destination
Storing signatures
Error: error checking path "/home/mike/test/deluge": stat /home/mike/test/deluge: no such file or directory
125
podman start -a deluge
Error: unable to find container deluge: no container with name or ID deluge found: no such container
125

然后最后当我通过ctrl-c

^CTraceback (most recent call last):
  File "/home/mike/.local/bin/podman-compose", line 8, in <module>
    sys.exit(main())
  File "/home/mike/.local/lib/python3.8/site-packages/podman_compose.py", line 1093, in main
    podman_compose.run()
  File "/home/mike/.local/lib/python3.8/site-packages/podman_compose.py", line 625, in run
    cmd(self, args)
  File "/home/mike/.local/lib/python3.8/site-packages/podman_compose.py", line 782, in wrapped
    return func(*args, **kw)
  File "/home/mike/.local/lib/python3.8/site-packages/podman_compose.py", line 914, in compose_up
    thread.join(timeout=1.0)
  File "/usr/lib64/python3.8/threading.py", line 1005, in join
    if not self._started.is_set():
  File "/usr/lib64/python3.8/threading.py", line 513, in is_set
    def is_set(self):
KeyboardInterrupt

我没有足够的经验来阅读这篇文章并找出问题所在,所以我希望向大家学习。

谢谢!

4

1 回答 1

1

您的路径中有错误:

volumes:
    /home/mike/test/deluge:/config

/home/mike/test/deluge: 没有这样的文件或目录

检查文件夹路径。

于 2020-05-23T19:55:30.060 回答