• Docker 安装Minio


    1、检索和拉取Minio镜像

    # 查看本地镜像

    docker images

    # 检索minio 镜像

    docker search minio


    # 拉取minio 镜像

    docker pull minio/minio

    1. [root@localhost ~]# docker images
    2. REPOSITORY TAG IMAGE ID CREATED SIZE
    3. nginx latest 0e901e68141f 2 months ago 142MB
    4. mysql 5.7 2a0961b7de03 2 months ago 462MB
    5. rabbitmq management 6c3c2a225947 7 months ago 253MB
    6. elasticsearch 7.6.2 f29a1ee41030 2 years ago 791MB
    7. delron/fastdfs latest 8487e86fc6ee 4 years ago 464MB
    8. [root@localhost ~]# docker search minio
    9. NAME DESCRIPTION STARS OFFICIAL AUTOMATED
    10. minio/minio Multi-Cloud Object Storage 586 [OK]
    11. bitnami/minio Bitnami MinIO Docker Image 45
    12. minio/mc Minio Client (mc) provides a modern alternat… 35 [OK]
    13. minio/console A graphical user interface for MinIO server 15
    14. bitnami/minio-client Bitnami MinIO Client Docker Image 6
    15. newrelic/synthetics-minion Synthetics Containerized Private Minion 5
    16. minio/operator 3
    17. rancher/minio-minio 1
    18. minio/kes Description Kes is a tool for managing and … 1
    19. minio/k8s-operator Minio Operator for k8s https://kubernetes.io/ 1
    20. [root@localhost ~]# docker pull minio/minio
    21. Using default tag: latest
    22. latest: Pulling from minio/minio
    23. d46336f50433: Pull complete
    24. be961ec68663: Pull complete
    25. 44173c602141: Pull complete
    26. a9809a6a679b: Pull complete
    27. df29d4a76971: Pull complete
    28. 2b5a8853d302: Pull complete
    29. 84f01ee8dfc1: Pull complete
    30. Digest: sha256:d786220feef7d8fe0239d41b5d74501dc824f6e7dd0e5a05749c502fff225bf3
    31. Status: Downloaded newer image for minio/minio:latest

    2、创建minio 配置目录和文件上传目录

    mkdir -p /usr/local/minio/config  # 存储minio 配置
    mkdir -p /usr/local/minio/data    # 存储minio 文件上传目录

    1. [root@localhost ~]# mkdir -p /usr/local/minio/config
    2. [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"

    1. [root@localhost ~]# docker run -p 9000:9000 -p 9090:9090 \
    2. > --net=host \
    3. > --name minio-server \
    4. > -d --restart=always \
    5. > -e "MINIO_ACCESS_KEY=minioadmin" \
    6. > -e "MINIO_SECRET_KEY=minioadmin@2022" \
    7. > -v /usr/local/minio/data:/data \
    8. > -v /usr/local/minio/config:/root/.minio \
    9. > minio/minio server \
    10. > /data --console-address ":9090" -address ":9000"
    11. 62233dfad35b5eacfccffe44137175c8fc17dbd234c5f4b86300f1b3fd9bb664

    温馨提示:

            9090端口指的是minio的客户端端口。虽然设置9090,但是我们在访问9000的时候,他会自动跳到9090。
            MINIO_ACCESS_KEY :账号
            MINIO_SECRET_KEY :密码

    4、Minio 管理控制台 

    访问地址:http://localhost:9090/

     

     

     

  • 相关阅读:
    日期类练习题
    存储芯片大厂集体“越冬” 头部厂商扎堆砍单、业绩下滑
    串口通信的基本原理
    为了简写这行代码,我竟使用静态和动态编译技术
    接口自动化测试:pytest基础讲解
    阿里技术官首发的Java核心框架指导手册,为了大厂得码住学起来~
    Python实操案例五
    测试员可以提高获得面试机会的9个简历投递秘笈
    Go 存储系列:LSM存储引擎 LevelDB
    2022年中总结
  • 原文地址:https://blog.csdn.net/zhouzhiwengang/article/details/126156107