赞
踩
目录
minio官网:MinIO | High Performance, Kubernetes Native Object Storage
代码:
docker pull minio/minio
实例:
[root@localhost howlong]# docker pull minio/minio Using default tag: latest latest: Pulling from minio/minio 5329d7039f25: Pull complete 2b3707fd3b24: Pull complete 5206d1e7147f: Pull complete 33feab5fa1c5: Pull complete 5cd9e0eb62e5: Pull complete 34f92c74bdaf: Pull complete Digest: sha256:15d762671436cf383f9cc6667260e6c1298c25c8d7009576f709c3823e4a494d Status: Downloaded newer image for minio/minio:latest docker.io/minio/minio:latest [root@localhost howlong]#
代码:
mkdir -p /usr/local/minio/config mkdir -p /usr/local/minio/data
注意:这里设置了minio客户端的账号和密码,其密码不可少于8位
账号:admin
密码:admin123
代码:
docker run -d \ --name minio \ -p 9000:9000 \ -p 9001:9001 \ --privileged=true \ -e "MINIO_ROOT_USER=admin" \ -e "MINIO_ROOT_PASSWORD=admin123" \ -v /usr/local/minion/data:/data \ -v /usr/local/minio/config:/root/.minio \ minio/minio server \ --console-address ":9000" \ --address ":9001" /data实例:
[root@localhost howlong]# docker run -d \ --name minio \ -p 9000:9000 \ -p 9001:9001 \ --privileged=true \ -e "MINIO_ROOT_USER=admin" \ -e "MINIO_ROOT_PASSWORD=admin123" \ -v /usr/local/minion/data:/data \ -v /usr/local/minio/config:/root/.minio \ minio/minio server \ --console-address ":9000" \ --address ":9001" /data 93c98998d5cbc51c6f208cfe676adf495d4931469aad1d9756e19dca3fd4b66a
代码:
docker start minio
实例:
[root@localhost howlong]# docker start minio minio [root@localhost howlong]#
访问虚拟机地址+端口号,前面配置minio 的端口号为:9000例如:
http://192.168.27.129:9000
账号:admin
密码:admin123
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。