docker 命令

查看docker容器日志

1
2
docker logs -f 容器id
docker logs -f minio

docker 安装软件

minio

命令

1
docker run -d --restart always -p 9000:9000 -p 9001:9001 --name minio -v /data/minio/data:/data -v /data/minio/config:/root/.minio -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=minioadmin" minio/minio server /data --console-address ":9000" --address ":9001"

ak&sk

1
2
admin	
minioadmin

成功日志

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@racknerd-9c2e31 minio]# docker logs -f minio
WARNING: MINIO_ACCESS_KEY and MINIO_SECRET_KEY are deprecated.
Please use MINIO_ROOT_USER and MINIO_ROOT_PASSWORD
Formatting 1st pool, 1 set(s), 1 drives per set.
WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable.
Warning: Default parity set to 0. This can lead to data loss.
MinIO Object Storage Server
Copyright: 2015-2022 MinIO, Inc.
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Version: RELEASE.2022-11-29T23-40-49Z (go1.19.3 linux/amd64)

Status: 1 Online, 0 Offline.
API: http://172.17.0.6:9001 http://127.0.0.1:9001
Console: http://172.17.0.6:9000 http://127.0.0.1:9000

Documentation: https://min.io/docs/minio/linux/index.html