如何修复 Quay Exception: Your configuration bundle is either not mounted or setup has not been completed

问题

启动你的 quay docker-compose 设置时,你看到以下错误消息:

error_trace.txt
Traceback (most recent call last):
  File "/quay-registry/boot.py", line 111, in <module>
    main()
  File "/quay-registry/boot.py", line 98, in main
    raise Exception(

解决方案

查看发生错误的 boot.py

quay_boot_check.py
    if not app.config.get("SETUP_COMPLETE", False):
        raise Exception(
            "Your configuration bundle is either not mounted or setup has not been completed"
        )

因此,首先添加

quay_config_setup_complete.yaml
SETUP_COMPLETE: true

config.yaml 并重启 quay。

如果仍然出现相同的错误消息,很可能你没有将配置挂载到正确的位置。它需要在 /config/stack/config.yaml,所以如果你在 docker-compose.yml 中使用

docker-compose-quay.yml
  quay:
    image: quay.io/projectquay/quay:latest
    # ...
    volumes:
      - ./quay_config:/conf/stack

quay_config 文件夹需要包含 config.yaml


Check out similar posts by category: Docker