Docker部署Minio
文档地址:https://min.io/docs/minio/container/index.html
运行命令
sudo mkdir -p /mydata/services/minio/data
sudo mkdir -p /mydata/services/minio/config
sudo docker run \
-p 9000:9000 \
-p 9001:9001 \
--name minio \
-v /mydata/services/minio/data:/data \
-v /mydata/services/minio/config:/root/.minio \
-e "MINIO_ROOT_USER=minioadmin" \
-e "MINIO_ROOT_PASSWORD=minioadmin" \
-d quay.io/minio/minio server /data --console-address ":9001"
登录
http://localhost:9001/login 账密:minioadmin/minioadmin
创建bucket
设置bucket匿名可读
创建Access Keys
Access Key Policy中配置
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"admin:*"
]
},
{
"Effect": "Allow",
"Action": [
"kms:*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::fucloud/*"
]
}
]
}