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)

Recommend

Implementing access control and connection restriction based on Nginx

Preface Nginx 's built-in module supports lim...

JavaScript implements cool mouse tailing effects

After watching this, I guarantee that you have ha...

Front-end JavaScript operation principle

Table of contents 1. What is a JavaScript engine?...

In-depth understanding of the implementation principle of require loader

Preface We often say that node is not a new progr...

Explanation of the usage scenarios of sql and various nosql databases

SQL is the main trunk. Why do I understand it thi...

Detailed explanation of SQL injection - security (Part 2)

If there are any errors in this article or you ha...

How to redirect URL using nginx rewrite

I often need to change nginx configuration at wor...

Some notes on mysql self-join deduplication

Let me briefly explain the functional scenario: T...

Detailed explanation of Nginx current limiting configuration

This article uses examples to explain the Nginx c...

The process of using vxe-table to make editable tables in vue

There is a table in the project that needs to be ...

How to install MySQL 5.7.17 and set the encoding to utf8 in Windows

download MySQL official download, select Windows ...

Use jQuery to fix the invalid page anchor point problem under iframe

The application scenario is: the iframe page has n...

CSS realizes the realization of background image screen adaptation

When making a homepage such as a login page, you ...