官网:https://www.minio.org.cn/docs/cn/minio/container/index.html
mkdir -p /opt/docker/minio/data sudo docker run -itd --restart=always --privileged \ -p 9000:9000 \ -p 9090:9090 \ --name minio \ -v /opt/docker/minio/data:/data \ -e "MINIO_ROOT_USER=admin" \ -e "MINIO_ROOT_PASSWORD=admin123" \ quay.io/minio/minio server /data --console-address ":9090"
The example above works this way:
-
mkdir
creates a new local directory at~/minio/data
in your home directory. -
docker run
starts the MinIO container. -
-p
binds a local port to a container port. -
-name
creates a name for the container. -
-v
sets a file path as a persistent volume location for the container to use. When MinIO writes data to/data
, that data mirrors to the local path~/minio/data
, allowing it to persist between container restarts. You can replace~/minio/data
with another local file location to which the user has read, write, and delete access. -
-e
sets the environment variablesMINIO_ROOT_USER
andMINIO_ROOT_PASSWORD
, respectively. These set the root user credentials. Change the example values to use for your container.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
2019-05-16 FutureTask 提高接口的吞吐量(多线程) && CompletableFuture
2019-05-16 DeferredResult 的使用
2019-05-16 Listener 监听器
2019-05-16 SpringBoot @Async 异步的使用基础篇