完整日志信息:
[root@myserver ~]# docker logs -f minio
16:15:47.72
16:15:47.72 Welcome to the Bitnami minio container
16:15:47.72 Subscribe to project updates by watching https://github.com/bitnami/containers
16:15:47.72 Submit issues and feature requests at https://github.com/bitnami/containers/issues
16:15:47.72
16:15:47.72 INFO ==> ** Starting MinIO setup **
minio 16:15:47.74 INFO ==> Starting MinIO in background...
minio 16:15:57.76 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:02.79 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:07.83 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:12.86 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:17.89 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:22.93 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:27.95 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:32.99 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:38.02 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:43.06 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:48.09 INFO ==> Adding local Minio host to 'mc' configuration...
minio 16:16:53.12 INFO ==> Adding local Minio host to 'mc' configuration...
Failed to add temporary MinIO server
minio 16:16:58.15 INFO ==> MinIO is already stopped...
[root@myserver ~]#
无法启动原因:密码长度太短
解决办法:将密码长度设置位不少于8位即可
注意:账号长度必须大于等于5,密码长度必须大于等于8位)
docker run -it -d --name minio \ -p 9000:9000 -p 9001:9001 \ -v /root/demo/minio/data:/data \ --env MINIO_ROOT_USER="root" \ ### --env MINIO_ROOT_PASSWORD="123456" \ //密码长度不够 --env MINIO_ROOT_PASSWORD="abc123456" \ //更长的密码长度,至少8位 bitnami/minio:latest