docker bind mounts 有时是空的

docker bind mounts 有时是空的

我正在使用具有以下定义的 Docker 容器:

  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    volumes:
      - /srv/dev-disk-by-id-ata-Micron_1100_MTFDDAV256TBN_17501A32891E-part3/dockerconfig/paperless/data:/usr/src/paperless/data
      - /srv/dev-disk-by-label-DataPool1/Paperless/paperless_ng_media:/usr/src/paperless/media
      - /srv/dev-disk-by-label-DataPool1/Paperless/export:/usr/src/paperless/export
      - /srv/dev-disk-by-label-DataPool1/Paperless/consume:/usr/src/paperless/consume

/usr/src/paperless/media有时,不幸的是,容器内部的内容是空的。现在创建的所有文件都位于容器内,而不是绑定挂载中。

重新启动容器通常会有所帮助。我没有观察到 journalctl -u docker docker inspect 正确显示的任何错误:

        "HostConfig": {
            "Binds": [
                "/srv/dev-disk-by-label-DataPool1/Paperless/paperless_ng_media:/usr/src/paperless/media:rw",
                "/srv/dev-disk-by-label-DataPool1/Paperless/export:/usr/src/paperless/export:rw",
                "/srv/dev-disk-by-label-DataPool1/Paperless/consume:/usr/src/paperless/consume:rw",
                "/srv/dev-disk-by-id-ata-Micron_1100_MTFDDAV256TBN_17501A32891E-part3/dockerconfig/paperless/data:/usr/src/paperless/data:rw"
            ],

/srv/dev-disk-by-label-DataPool1/Paperless/paperless_ng_media除了它是一个 btrfs 子卷之外,该文件夹没有什么特殊之处:

/dev/sdc1 on /srv/dev-disk-by-label-DataPool1 type btrfs 
/dev/sdc1 on /srv/dev-disk-by-label-DataPool1/Paperless type btrfs (rw,noatime,space_cache=v2,subvolid=1385,subvol=/Paperless)```

I am out of ideas..
Do you have any?

Best regards,
Hendrik

相关内容