[GH-ISSUE #72] docker 容器运行时,如何增加下载和删除等功能 #33

Closed
opened 2026-04-08 16:49:55 +03:00 by zhus · 2 comments
Owner

Originally created by @axin7 on GitHub (Jun 24, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/72

使用docker时,默认只有下载功能,docker exec进不去容器, 该怎么增加下载和删除等功能

Originally created by @axin7 on GitHub (Jun 24, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/72 使用docker时,默认只有下载功能,docker exec进不去容器, 该怎么增加下载和删除等功能
zhus closed this issue 2026-04-08 16:49:56 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 24, 2022):

docker镜像基于scratch,大小只有3.4M,不含操作系统,所以没法运行docker exec 进入。

运行容器时,可以在尾部带上选项,示例如下

docker run -v `pwd`:/data -p 5000:5000 --rm -it sigoden/dufs /data -A
<!-- gh-comment-id:1165405281 --> @sigoden commented on GitHub (Jun 24, 2022): docker镜像基于scratch,大小只有3.4M,不含操作系统,所以没法运行docker exec 进入。 运行容器时,可以在尾部带上选项,示例如下 ``` docker run -v `pwd`:/data -p 5000:5000 --rm -it sigoden/dufs /data -A ```
Author
Owner

@axin7 commented on GitHub (Jun 24, 2022):

好的,谢了

<!-- gh-comment-id:1165489559 --> @axin7 commented on GitHub (Jun 24, 2022): 好的,谢了
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#33