Docker 安装Minio
Posted 在奋斗的大道
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker 安装Minio相关的知识,希望对你有一定的参考价值。
1、检索和拉取Minio镜像
# 查看本地镜像
docker images
# 检索minio 镜像
docker search minio
# 拉取minio 镜像
docker pull minio/minio
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 0e901e68141f 2 months ago 142MB
mysql 5.7 2a0961b7de03 2 months ago 462MB
rabbitmq management 6c3c2a225947 7 months ago 253MB
elasticsearch 7.6.2 f29a1ee41030 2 years ago 791MB
delron/fastdfs latest 8487e86fc6ee 4 years ago 464MB
[root@localhost ~]# docker search minio
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
minio/minio Multi-Cloud Object Storage 586 [OK]
bitnami/minio Bitnami MinIO Docker Image 45
minio/mc Minio Client (mc) provides a modern alternat… 35 [OK]
minio/console A graphical user interface for MinIO server 15
bitnami/minio-client Bitnami MinIO Client Docker Image 6
newrelic/synthetics-minion Synthetics Containerized Private Minion 5
minio/operator 3
rancher/minio-minio 1
minio/kes Description Kes is a tool for managing and … 1
minio/k8s-operator Minio Operator for k8s https://kubernetes.io/ 1
[root@localhost ~]# docker pull minio/minio
Using default tag: latest
latest: Pulling from minio/minio
d46336f50433: Pull complete
be961ec68663: Pull complete
44173c602141: Pull complete
a9809a6a679b: Pull complete
df29d4a76971: Pull complete
2b5a8853d302: Pull complete
84f01ee8dfc1: Pull complete
Digest: sha256:d786220feef7d8fe0239d41b5d74501dc824f6e7dd0e5a05749c502fff225bf3
Status: Downloaded newer image for minio/minio:latest
2、创建minio 配置目录和文件上传目录
mkdir -p /usr/local/minio/config # 存储minio 配置
mkdir -p /usr/local/minio/data # 存储minio 文件上传目录
[root@localhost ~]# mkdir -p /usr/local/minio/config
[root@localhost ~]# mkdir -p /usr/local/minio/data
3、运行Minio 容器
docker run -p 9000:9000 -p 9090:9090 \\
--net=host \\
--name minio-server \\
-d --restart=always \\
-e "MINIO_ACCESS_KEY=minioadmin" \\
-e "MINIO_SECRET_KEY=minioadmin@2022" \\
-v /usr/local/minio/data:/data \\
-v /usr/local/minio/config:/root/.minio \\
minio/minio server \\
/data --console-address ":9090" -address ":9000"
[root@localhost ~]# docker run -p 9000:9000 -p 9090:9090 \\
> --net=host \\
> --name minio-server \\
> -d --restart=always \\
> -e "MINIO_ACCESS_KEY=minioadmin" \\
> -e "MINIO_SECRET_KEY=minioadmin@2022" \\
> -v /usr/local/minio/data:/data \\
> -v /usr/local/minio/config:/root/.minio \\
> minio/minio server \\
> /data --console-address ":9090" -address ":9000"
62233dfad35b5eacfccffe44137175c8fc17dbd234c5f4b86300f1b3fd9bb664
温馨提示:
9090端口指的是minio的客户端端口。虽然设置9090,但是我们在访问9000的时候,他会自动跳到9090。
MINIO_ACCESS_KEY :账号
MINIO_SECRET_KEY :密码
4、Minio 管理控制台
以上是关于Docker 安装Minio的主要内容,如果未能解决你的问题,请参考以下文章
Docker Swarm 使用NFS 搭建 S3 (minio)多副本