minio docker 容器启动失败
minio启动报错解决
这里写自定义目录标题
报错日志
docker直接run启动或者在容器引擎启动失败,日志如下:
NAME:
minio - High Performance Object Storage
DESCRIPTION:
Build high performance data infrastructure for machine learning, analytics and application data workloads with MinIO
USAGE:
minio [FLAGS] COMMAND [ARGS…]
COMMANDS:
server start object storage server
gateway start object storage gateway
FLAGS:
–certs-dir value, -S value path to certs directory (default: “/root/.minio/certs”)
–quiet disable startup information
–anonymous hide sensitive information from logging
–json output server logs and startup information in json format
–help, -h show help
–version, -v print the version
VERSION:
RELEASE.2021-06-17T00-10-46Z
没有任何明显错误,但是运行状态为失败,后来通过对比查阅别人启动的命令发现minio启动 命令为“server /data”(https://xie.infoq.cn/article/ca10ea51ac1d44d5fd9165a50)。/data 为数据存储位置。添加启动命令如“docker run -d -p 9000:9000 --name myminio -e “MINIO_ROOT_USER=minioadmin” -e “MINIO_ROOT_PASSWORD=minioadmin” -v /home/minio/data:/data minio/minio server /data “,之后miniodocker容器可正常启动。
但在容器引擎添加“server /data"启动失败,报错””starting container process caused “exec: “server”: executable file not found in $PATH”: unknown“ 、”Back-off restarting failed container“。无法识别”server“命令,docker inspect img:tag,查看minio commd。
最后运行命令“/bin/sh”,运行参数”-ce“”/usr/bin/docker-entrypoint.sh minio -C /root/.minio/ server /data“
引用文章来源:
Docker 安装 Minio 搭建属于自己的文件服务器
原文链接: https://xie.infoq.cn/article/ca10ea51ac1d44d5fd9165a50”,
更多推荐
所有评论(0)