当前位置:首页 » 《随便一记》 » 正文

docker 安装minio

0 人参与  2023年05月07日 11:21  分类 : 《随便一记》  评论

点击全文阅读


1:安装minio

docker pull minio/minio

2:启动

必须先创建/home/data和/home/config目录

 docker run -d  --name minio  --env MINIO_SECRET_KEY=admin  --env MINIO_ACCESS_KEY=admin  -p 9006:9000/tcp  --restart=always  -v /home/data:/data  -v /home/config:/root/.minio  minio/minio server /data

[root@VM-0-4-centos home]# docker psEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES[root@VM-0-4-centos home]# docker pull minio/minioEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.✔ docker.io/minio/minio:latestTrying to pull docker.io/minio/minio:latest...Getting image source signaturesCopying blob 38874a4f955a done  Copying blob a6577091999b done  Copying blob 17b5089cf17e done  Copying blob e31c11c0fee0 done  Copying blob c1884fa2cd22 done  Copying blob 33c38a77f57c done  Copying config 3856355e86 done  Writing manifest to image destinationStoring signatures3856355e86acf6e7177280c5ae41b42fd4dc812f738e755bddd10e985018e123[root@VM-0-4-centos home]# docker run -d \>  --name minio \>  --env MINIO_SECRET_KEY=admin \>  --env MINIO_ACCESS_KEY=admin \>  -p 9006:9000/tcp \>  --restart=always \>  -v /home/data:/data \>  -v /home/config:/root/.minio \>  minio/minio server /data Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.Error: statfs /home/config: no such file or directory[root@VM-0-4-centos home]# mkdir config[root@VM-0-4-centos home]# docker run -d  --name minio  --env MINIO_SECRET_KEY=admin  --env MINIO_ACCESS_KEY=admin  -p 9006:9000/tcp  --restart=always  -v /home/data:/data  -v /home/config:/root/.minio  minio/minio server /data Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.86e7be3715220307709b4203b6fbc47088b129a80820493ddcad06adc1c576d0[root@VM-0-4-centos home]# docker psEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.CONTAINER ID  IMAGE                         COMMAND       CREATED         STATUS             PORTS                   NAMES86e7be371522  docker.io/minio/minio:latest  server /data  13 seconds ago  Up 13 seconds ago  0.0.0.0:9006->9000/tcp  minio[root@VM-0-4-centos home]# 

[root@VM-0-4-centos home]#   docker run \>    -p 9000:9000 \>    -p 9090:9090 \>    --name minio \>    -v /home/data:/data \>    -e "MINIO_ROOT_USER=admin" \>    -e "MINIO_ROOT_PASSWORD=admin123456" \>    quay.io/minio/minio server /data --console-address ":9090"Unable to find image 'quay.io/minio/minio:latest' locally^[[A^[[Alatest: Pulling from minio/minioa6577091999b: Already exists 272ef7f3b151: Pull complete 160c48177e58: Pull complete 972b2fb2a95b: Pull complete ccfb7a689c9b: Pull complete c6904b26da34: Downloading [=================================================> ]  65.55MB/66.28MBc6904b26da34: Pull complete Digest: sha256:ed96f57da01c2fef3866108616a3aa79e75f43ae53331ba859d50680be34256bStatus: Downloaded newer image for quay.io/minio/minio:latestWarning: Default parity set to 0. This can lead to data loss.MinIO Object Storage ServerCopyright: 2015-2022 MinIO, Inc.License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>Version: RELEASE.2022-11-17T23-20-09Z (go1.19.3 linux/amd64)Status:         1 Online, 0 Offline. API: http://172.17.0.2:9000  http://127.0.0.1:9000 Console: http://172.17.0.2:9090 http://127.0.0.1:9090 Documentation: https://min.io/docs/minio/linux/index.html

docker run -d \
 --name minio \
 --env MINIO_SECRET_KEY=admin123456 \
 --env MINIO_ACCESS_KEY=admin \
 -p 9006:9000/tcp \
 --restart=always \
 -v /home/data:/data \
 -v /home/config:/root/.minio \
 minio/minio server /data 

 
VERSION
2020-10-28T08:16:50Z
PLATFORM
Host: 2d0c49581b55 | OS: linux | Arch: amd64
RUNTIME
Version: go1.15.3 | CPUs: 4


docker run -d  --name minio  --env MINIO_SECRET_KEY=admin  --env MINIO_ACCESS_KEY=admin  -p 9006:9000/tcp  --restart=always  -v /home/data:/data  -v /home/config:/root/.minio  minio/minio server /data 

docker run -d \
  -p 9000:9000 \
  --name minio \
  -v /home/data:/data \
  -e "MINIO_ROOT_USER=admin" \
  -e "MINIO_ROOT_PASSWORD=admin123456" \
  minio/minio server /data --console-address ":9090"
  
  docker run \
   -p 9000:9000 \
   -p 9090:9090 \
   --name minio \
   -v /home/data:/data \
   -e "MINIO_ROOT_USER=admin" \
   -e "MINIO_ROOT_PASSWORD=admin123456" \
   quay.io/minio/minio server /data --console-address ":9090"
 


点击全文阅读


本文链接:http://zhangshiyu.com/post/61320.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • 全书浏览一见青山云端月(苏浅歌沈廷淮)_一见青山云端月(苏浅歌沈廷淮)全书结局
  • 你来时风起云涌(陆翊夏天瑜赵歆)
  • [错认女儿后,前未婚夫跪求我当平妻]全文+后续_沈意宁宁沈母全集阅读
  • (姜若凝楚淮舟剜月寄无书)剜月寄无书姜若凝楚淮舟全书+后续免费全书_姜若凝楚淮舟剜月寄无书_笔趣阁(剜月寄无书姜若凝楚淮舟全书+后续)
  • (番外)+(结局)时星祁宸衍(离谱!被死对头强娶豪夺了全书+番外+后续)_(时星祁宸衍)列表_笔趣阁(离谱!被死对头强娶豪夺了全书+番外+后续)
  • 往梦难复温创作编写列表_往梦难复温创作编写(沈淮霆宋思予)
  • 「爱意破碎,只留风雨」删减内容修复版本_白玥陈致恒万宁情感冲突名场面试读章
  • (沈淮霆宋思予往梦难复温)往梦难复温沈淮霆宋思予全书+后续免费全书_沈淮霆宋思予往梦难复温_笔趣阁(往梦难复温沈淮霆宋思予全书+后续)
  • [如果回到曾经,我也不会选你]关键剧情节选解锁_「沈辞柳妙湘大屏幕」最新章节免费阅读
  • 爱意消散于那夜免费试读_司南袁宁文修最新章节免费阅读
  • (番外)+(全书)往梦难复温全书++番外(沈淮霆宋思予)完结_(沈淮霆宋思予)列表_笔趣阁(往梦难复温全书++番外)
  • 春到南楼雪尽处优质全章(傅庭州苏枝夏)_春到南楼雪尽处优质全章

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1