# 将官方镜像拉到本地
docker pull minio/minio

# 将minio 上传到自己的私有仓库
docker tag docker-reg.xxx.com/library/minio:lastest  minio/minio
docker push docker-reg.xxx.com/library/minio:lastest
docker-compose.yaml 文件如下:

version: '2.1'
services:
  minio:
    image: docker-reg.xxx.com/library/minio:latest
    container_name: minio
    ports:
      - "9000:9000"
    restart: always
    command: server /data
   environment:
      MINIO_ACCESS_KEY: root
      MINIO_SECRET_KEY: password
    logging:
      options:
        max-size: "5M"
        max-file: "10"
      driver: json-file
    volumes:
      - /opt/infrastructure/volumes/minio/data:/data


启动命令:

docker-composer -f docker-compose.yaml up -d

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-06-08
  • 2021-06-30
  • 2021-11-22
  • 2021-07-11
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-04-20
相关资源
相似解决方案