Detailed steps for installing MinIO on Docker

Detailed steps for installing MinIO on Docker

1. Check whether the docker environment is normal

Use docker search minIO from the command line:

If you can find out that Docker is installed correctly, then proceed to the next step

2. Download the miniIO image

docker pull minio/minio

3. Create a miniIO container

View All Mirrors

docker images

Create directories: one for storing configuration and one for storing uploaded files.

mkdir -p /data/minio/config
mkdir -p /data/minio/data

Create and start the miniIO container:
The \ here means that the command has not been completed yet and you need to continue entering the command, so don't execute it yet.
The 9090 port here refers to the minio client port. Although it is set to 9090, when we access 9000, it will automatically jump to 9090.

docker run -p 9000:9000 -p 9090:9090 \
 --net=host \
 --name minio \
 -d --restart=always \
 -e "MINIO_ACCESS_KEY=minioadmin" \
 -e "MINIO_SECRET_KEY=minioadmin" \
 -v /data/minio/data:/data \
 -v /data/minio/config:/root/.minio \
 minio/minio server \
 /data --console-address ":9090" -address ":9000"

MINIO_ACCESS_KEY :Account
MINIO_SECRET_KEY : password

After execution, use docker ps to view the running container:

4. Access address

http://192.168.56.103:9090

If the access result is like this, it means success!

insert image description here

5. Installation problems

If the client cannot be opened after running the container, you can view the logs through docker logs 容器id .

1. Question 1

At the beginning, I encountered a problem. It should be that there is a problem with the length of the account and password. A normal account should be no less than 3 characters, and the password should be no less than 8 characters, otherwise the container will fail to start.

insert image description here

2. Question 2

If the client port is not set, the following warning will appear.

insert image description here
insert image description here

3. Question 3

Everything is normal, and the client can be opened, but when connecting to minio through the program to upload, an error is reported, the error message is:

Upload failedThe difference between the request time and the server's time is too

The system time zone is inconsistent with the hardware time zone.

timedatectl // View time zone configuration 

insert image description here

Install ntpdate tool

yum -y install ntp ntpdate

Set the system time to synchronize with the network time

ntpdate cn.pool.ntp.org

Write system time to hardware time

hwclock --systohc

This is the end of this article about the detailed steps of installing MinIO with Docker. For more information about installing MinIO with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of the process of using docker to build minio and java sdk
  • Detailed explanation of docker version es, milvus, minio startup commands

<<:  Summary of the Differences between find() and filter() Methods in JavaScript

>>:  A brief discussion on adaptive layout issues on mobile devices (responsive, rem/em, Js dynamics)

Blog    

Recommend

Detailed explanation of the use of Linux seq command

01. Command Overview The seq command is used to g...

Horizontal header menu implemented with CSS3

Result:Implementation Code html <nav class=&qu...

A brief analysis of crontab task scheduling in Linux

1. Create a scheduling task instruction crontab -...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

JavaScript simulation calculator

This article shares the specific code of JavaScri...

Zabbix uses PSK shared key to encrypt communication between Server and Agent

Since Zabbix version 3.0, it has supported encryp...

What are the core modules of node.js

Table of contents Global Object Global objects an...

Summary of MySQL composite indexes

Table of contents 1. Background 2. Understanding ...

How to bind Docker container to external IP and port

Docker allows network services to be provided by ...

Node.js returns different data according to different request paths.

Table of contents 1. Learn to return different da...

Navigation Design and Information Architecture

<br />Most of the time when we talk about na...

My personal summary of mysql 5.7 database installation steps

1.mysql-5.7.19-winx64.zip (this is the free insta...

Summary of methods for cleaning Mysql general_log

Method 1: SET GLOBAL general_log = 'OFF';...