skip to Main Content

I try to upgrade minio version in my docker commpose(previously I used image: minio/minio:RELEASE.2020-06-22T03-12-50Z and it was working
)
For now I have following docker-compose service:

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

When I try to start(docker-compose up -d) I see the following error in the minio container log:

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

I’ve googled the following article https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

But I still don’t understand what shoud I change in my compose file to make it working.

2

Answers


  1. Chosen as BEST ANSWER

    It is not a solution but workaround how to use a fresh version:

      minio:
        container_name: minio
        image: bitnami/minio:2022.11.17-debian-11-r0
        volumes:
          - minio-data:/data
        ports:
          - 9000:9000
          - 9001:9001
        environment:
          - MINIO_ROOT_USER=minio
          - MINIO_ROOT_PASSWORD=minio123
          - MINIO_DEFAULT_BUCKETS=mybucket1,mybucket2
        healthcheck:
          test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
          interval: 30s
          timeout: 20s
    

  2. looks like you need migrate data/fs in your volum to be used in new version of minio

    so you need to run steps from
    https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

    In your compose you need to add

    volumes:
       minio-data:
          driver: local
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search