• docker 安装minio


    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

    1. [root@VM-0-4-centos home]# docker ps
    2. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
    3. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    4. [root@VM-0-4-centos home]# docker pull minio/minio
    5. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
    6. ✔ docker.io/minio/minio:latest
    7. Trying to pull docker.io/minio/minio:latest...
    8. Getting image source signatures
    9. Copying blob 38874a4f955a done
    10. Copying blob a6577091999b done
    11. Copying blob 17b5089cf17e done
    12. Copying blob e31c11c0fee0 done
    13. Copying blob c1884fa2cd22 done
    14. Copying blob 33c38a77f57c done
    15. Copying config 3856355e86 done
    16. Writing manifest to image destination
    17. Storing signatures
    18. 3856355e86acf6e7177280c5ae41b42fd4dc812f738e755bddd10e985018e123
    19. [root@VM-0-4-centos home]# docker run -d \
    20. > --name minio \
    21. > --env MINIO_SECRET_KEY=admin \
    22. > --env MINIO_ACCESS_KEY=admin \
    23. > -p 9006:9000/tcp \
    24. > --restart=always \
    25. > -v /home/data:/data \
    26. > -v /home/config:/root/.minio \
    27. > minio/minio server /data
    28. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
    29. Error: statfs /home/config: no such file or directory
    30. [root@VM-0-4-centos home]# mkdir config
    31. [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
    32. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
    33. 86e7be3715220307709b4203b6fbc47088b129a80820493ddcad06adc1c576d0
    34. [root@VM-0-4-centos home]# docker ps
    35. Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
    36. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    37. 86e7be371522 docker.io/minio/minio:latest server /data 13 seconds ago Up 13 seconds ago 0.0.0.0:9006->9000/tcp minio
    38. [root@VM-0-4-centos home]#

    1. [root@VM-0-4-centos home]# docker run \
    2. > -p 9000:9000 \
    3. > -p 9090:9090 \
    4. > --name minio \
    5. > -v /home/data:/data \
    6. > -e "MINIO_ROOT_USER=admin" \
    7. > -e "MINIO_ROOT_PASSWORD=admin123456" \
    8. > quay.io/minio/minio server /data --console-address ":9090"
    9. Unable to find image 'quay.io/minio/minio:latest' locally
    10. ^[[A^[[Alatest: Pulling from minio/minio
    11. a6577091999b: Already exists
    12. 272ef7f3b151: Pull complete
    13. 160c48177e58: Pull complete
    14. 972b2fb2a95b: Pull complete
    15. ccfb7a689c9b: Pull complete
    16. c6904b26da34: Downloading [=================================================> ] 65.55MB/66.28MB
    17. c6904b26da34: Pull complete
    18. Digest: sha256:ed96f57da01c2fef3866108616a3aa79e75f43ae53331ba859d50680be34256b
    19. Status: Downloaded newer image for quay.io/minio/minio:latest
    20. Warning: Default parity set to 0. This can lead to data loss.
    21. MinIO Object Storage Server
    22. Copyright: 2015-2022 MinIO, Inc.
    23. License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
    24. Version: RELEASE.2022-11-17T23-20-09Z (go1.19.3 linux/amd64)
    25. Status: 1 Online, 0 Offline.
    26. API: http://172.17.0.2:9000 http://127.0.0.1:9000
    27. Console: http://172.17.0.2:9090 http://127.0.0.1:9090
    28. 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"
     

  • 相关阅读:
    Unity3D热更设计:一款基于 HybridCLR的C#热更方案
    ArcGIS制作横向图例
    gitea的简单介绍
    mysql(01)
    微信早安消息推送(大升级版-企业微信)
    DFS例题(n皇后问题)C++(Acwing)
    kubeadm安装高可用k8s集群
    iOS原生应用集成Uni小程序SDK教程
    Android中的屏幕刷新机制(动画视频形象说明机制)
    面试突击75:SpringBoot 有几种读取配置文件的方法?
  • 原文地址:https://blog.csdn.net/wind520/article/details/128010047