Ошибка при запуске podman-compose: KeyError: 'mountPoint'


Файл docker-compose.yml

version: '3.8'

services:
  kallithea:
    build:
      context: ./
      dockerfile: ./deploy/Dockerfile
    volumes:
      - ./settings/.kallithea.ini:/usr/src/kallithea.ini
      - static:/usr/src/static
    links:
      - db
    depends_on:
      - db
    restart:
      always

  db:
    image: postgres:latest
    restart: always
    volumes:
      - ./data/db:/var/lib/postgresql/data
      - ./settings/.init.sql:/docker-entrypoint-initdb.d/10-init.sql
    env_file:
      - ./settings/.env.db

  nginx:
    image: nginx:latest
    restart: always
    links:
      - kallithea
    ports:
      - "8000:80"
    volumes:
      - ./logs:/var/log/nginx
      - ./deploy/nginx/proxy_params:/etc/nginx/proxy_params
      - ./deploy/nginx/kallithea.conf:/etc/nginx/conf.d/kallithea.conf
      - static:/usr/share/nginx/html:ro

volumes:
  static:

Ошибка

podman-compose up
podman pod create --name=kallithea --share net -p 8000:80
d8d691a78fac359d40915616de5686eaefa59386d081d4c6181ae956c9918855
0
podman create --name=kallithea_db_1 --pod=kallithea -l io.podman.compose.config-hash=123 -l io.podman.compose.project=kallithea -l io.podman.compose.version=0.0.1 -l com.docker.compose.container-number=1 -l com.docker.compose.service=db --env-file /home/master/Devel/DevOps/docker/kallithea/settings/.env.db --mount type=bind,source=/home/master/Devel/DevOps/docker/kallithea/./data/db,destination=/var/lib/postgresql/data --mount type=bind,source=/home/master/Devel/DevOps/docker/kallithea/./settings/.init.sql,destination=/docker-entrypoint-initdb.d/10-init.sql --add-host kallithea:127.0.0.1 --add-host kallithea_kallithea_1:127.0.0.1 --add-host db:127.0.0.1 --add-host kallithea_db_1:127.0.0.1 --add-host nginx:127.0.0.1 --add-host kallithea_nginx_1:127.0.0.1 --healthcheck-command /bin/sh -c 'pg_isready -U kallithea -h localhost' --healthcheck-interval 5s --healthcheck-timeout 5s --healthcheck-retries 5 postgres:latest
4a133a59d2ba34373cea98910228f64f4de5a06ec2ca644759a3a515865e5dd2
0
podman volume inspect kallithea_static || podman volume create kallithea_static
Traceback (most recent call last):
  File "/usr/local/bin/podman-compose", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 1093, in main
    podman_compose.run()
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 625, in run
    cmd(self, args)
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 782, in wrapped
    return func(*args, **kw)
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 897, in compose_up
    podman_args = container_to_args(compose, cnt,
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 457, in container_to_args
    mount_args = mount_desc_to_args(compose, volume, cnt['_service'], cnt['name'])
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 386, in mount_desc_to_args
    mount_desc = mount_dict_vol_to_bind(compose, fix_mount_dict(mount_desc, proj_name, srv_name))
  File "/usr/local/lib/python3.8/site-packages/podman_compose.py", line 366, in mount_dict_vol_to_bind
    src = json.loads(out)[0]["mountPoint"]
KeyError: 'mountPoint'
Ответы

Заменить

    src = json.loads(out)[0]["mountPoint"]

на

    try:
        src = json.loads(out)[0]["mountPoint"]
    except KeyError:
        src = json.loads(out)[0]["Mountpoint"]

Ссылки


Возможно будут интересны и другие вопросы
© RemiZOffAlex