随笔 - 836  文章 - 1 评论 - 40 阅读 - 102万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

 

官网: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 variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, respectively. These set the root user credentials. Change the example values to use for your container.

posted on   lshan  阅读(64)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 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 异步的使用基础篇
点击右上角即可分享
微信分享提示