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
[root@VM-0-4-centos home]# docker psEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES[root@VM-0-4-centos home]# docker pull minio/minioEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.✔ docker.io/minio/minio:latestTrying to pull docker.io/minio/minio:latest...Getting image source signaturesCopying blob 38874a4f955a done Copying blob a6577091999b done Copying blob 17b5089cf17e done Copying blob e31c11c0fee0 done Copying blob c1884fa2cd22 done Copying blob 33c38a77f57c done Copying config 3856355e86 done Writing manifest to image destinationStoring signatures3856355e86acf6e7177280c5ae41b42fd4dc812f738e755bddd10e985018e123[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 Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.Error: statfs /home/config: no such file or directory[root@VM-0-4-centos home]# mkdir config[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 Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.86e7be3715220307709b4203b6fbc47088b129a80820493ddcad06adc1c576d0[root@VM-0-4-centos home]# docker psEmulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES86e7be371522 docker.io/minio/minio:latest server /data 13 seconds ago Up 13 seconds ago 0.0.0.0:9006->9000/tcp minio[root@VM-0-4-centos home]#
[root@VM-0-4-centos home]# 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"Unable to find image 'quay.io/minio/minio:latest' locally^[[A^[[Alatest: Pulling from minio/minioa6577091999b: Already exists 272ef7f3b151: Pull complete 160c48177e58: Pull complete 972b2fb2a95b: Pull complete ccfb7a689c9b: Pull complete c6904b26da34: Downloading [=================================================> ] 65.55MB/66.28MBc6904b26da34: Pull complete Digest: sha256:ed96f57da01c2fef3866108616a3aa79e75f43ae53331ba859d50680be34256bStatus: Downloaded newer image for quay.io/minio/minio:latestWarning: Default parity set to 0. This can lead to data loss.MinIO Object Storage ServerCopyright: 2015-2022 MinIO, Inc.License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>Version: RELEASE.2022-11-17T23-20-09Z (go1.19.3 linux/amd64)Status: 1 Online, 0 Offline. API: http://172.17.0.2:9000 http://127.0.0.1:9000 Console: http://172.17.0.2:9090 http://127.0.0.1:9090 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"