Podman-撰写失败

时间:2020-05-23 02:20:59

标签: docker docker-compose podman

我知道podman-compose仍在开发中。一旦将PowerEdge服务器上的Debian替换为CentOS8(作为家庭实验室的一部分),我将用podman替换docker堆栈。现在,我只是在Fedora机器上测试/玩Podman。

OS:Fedora 32 内核:5.6.12-300.fc32.x86_64 播客: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

我没有足够的经验来阅读这些内容并弄清楚问题出在哪里,所以我希望向大家学习。

谢谢!

1 个答案:

答案 0 :(得分:0)

您的路径有误:

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

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

检查文件夹路径。