Docker deploys stand-alone minio

1. Docker deploys minio

1. Pull the image

The code is as follows (example):

docker pull minio/minio

2. Run the image

Create a directory mapping directory:
mkdir -p /docker/minio/data

mkdir -p /docker/minio/config

The code is as follows (example):

docker run -di -p 8005:8005  -p 8006:8006  --network zjd_v3_yj --name minio --restart=always -e "MINIO_ROOT_USER=minio" -e "MINIO_ROOT_PASSWORD=111111fw" -v /usr/zjd_v3/data/minio/data:/data -v /usr/zjd_v3/data/minio/config:/root/.minio -v /etc/localtime:/etc/localtime minio/minio server /data --console-address ":8006" --address ":8005";

3. Use minio in springboot

The link is as follows (example):
use minio in the project

4. minio official website address

The link is as follows:
minio official website address

5. Step on the pit

Project running error

io.minio.errors.InvalidResponseException: Non-XML response from server

Reason: either the user password is incorrectly filled in, or the configuration api in yml is incorrect

1. Add an account in the console of minio
insert image description here

2. The address of the endpoint is the API address after startup, which is the address filled in the endpoint of yml
insert image description here

Guess you like

Origin blog.csdn.net/wei1359765074410/article/details/126230669