# 将官方镜像拉到本地
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