Minio:找到后端类型 fs,预期为 xl 或 xl-single

gst*_*low 6 docker docker-compose minio

我尝试在我的 docker compose 中升级 minio 版本(以前我使用过image: minio/minio:RELEASE.2020-06-22T03-12-50Z并且它正在工作)现在我有以下 docker-compose 服务:

version: '3.6'
services:
  minio:
    container_name: minio
    image: minio/minio:RELEASE.2022-11-17T23-20-09Z.fips
    volumes:
      - minio-data:/data
    ports:
      - 9000:9000
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=minio123
    command: server /data
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
Run Code Online (Sandbox Code Playgroud)

当我尝试 start( docker-compose up -d) 时,我在 minio 容器日志中看到以下错误:

2022-11-25 11:40:56 ERROR Unable to use the drive /data: Drive /data: found backend type fs, expected xl or xl-single - to migrate to a supported backend visit https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html: Invalid arguments specified
Run Code Online (Sandbox Code Playgroud)

我用谷歌搜索了以下文章https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

但我仍然不明白我应该在我的撰写文件中更改什么才能使其正常工作。

Rya*_*der 3

看起来您需要迁移卷中的数据/文件系统才能在新版本的 minio 中使用

因此您需要运行 https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html中的步骤

在您的撰写中,您需要添加

volumes:
   minio-data:
      driver: local
Run Code Online (Sandbox Code Playgroud)