Minio的Docker部署docker-compose启动流程


搜索

搜索镜像的命令:

[root@localhost ~]# docker search minio
NAME                         DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
minio/minio                  Multi-Cloud Object Storage                      502                  [OK]
minio/mc                     Minio Client (mc) provides a modern alternat…   28                   [OK]
minio/console                A graphical user interface for MinIO server     9                    
pixelchrome/minio-arm        This Dockerfile installs Minio on your ARM-P…   5                    
jessestuart/minio            Minio server — supports arm (arm32v6, arm32v…   5                    
opennms/minion               Application container runs Minion by OpenNMS…   3                    [OK]
webhippie/minio              Docker images for Minio                         3                    [OK]
rook/minio                   Minio is a high performance distributed obje…   2                    
teamwork/minio               Minio for Teamwork                              1                    
minio/k8s-operator           Minio Operator for k8s https://kubernetes.io/   1                    
zenithar/minio-server        Minio.io Server in Alpine Linux docker          1                    [OK]
azinchen/minio               Minio server Docker image. Always up-to-date…   1                    
minio/operator                                                               1                    
keikoproj/minion-manager     https://github.com/orkaproj/minion-manager      0                    
joepll/minio-exporter        Prometheus exporter for Minio server            0                    
minio/mint                   Collection of tests to detect overall correc…   0                    [OK]
opsmx11/minio                Minio for Openshift                             0                    [OK]
leviy/minio                  Minio image for development and testing of (…   0                    [OK]
kimurashuhei/minio           minio server for using it in github actions     0                    
topdockercat/minio-unraid    Minio is an Amazon S3 compatible object stor…   0                    [OK]
rwsdockercf/minio-resource                                                   0                    
minio/kes                    Description  Kes is a tool for managing and …   0                    
sourcegraph/minio                                                            0                    
nerc/minio                   Minio container for use in the datalab proje…   0                    [OK]
tobilg/minio-dcos            minio on DC/OS                                  0                    [OK]


拉取镜像

拉取镜像的命令:

[root@localhost ~]#docker pull minio/minio

配置docker-compose.yml

[root@localhost bin]# vi docker-compose.yml

version: '3'
services:
  minio:
    image: minio/minio:latest
    restart: always
    container_name: minio
    command: server /data --console-address :9200
    ports:
      - "9000:9000"
      - "9200:9200"
    network_mode: bridge
    environment:
      MINIO_ACCESS_KEY: "username"
      MINIO_SECRET_KEY: "password"
    logging:
      options:
        max-size: "10M"
        max-file: "10"
      driver: json-file
    volumes:
      - ./minio/data:/data
      - ./minio/config:/root/.minio

启动与安装镜像

[root@localhost bin]# docker-compose up -d
Creating minio         ... done

启动成功

[root@localhost bin]# docker ps -a
CONTAINER ID      IMAGE                            COMMAND                    CREATED             STATUS                PORTS                                                                   NAMES
2d231efe3324      minio/minio:latest          "/usr/bin/docker-ent…"    5 seconds ago      Up 4 seconds    0.0.0.0:9200->9000/tcp, :::9200->9000/tcp                    minio

登录客户端

http://192.168.1.100:9200/