[GH-ISSUE #562] How to connect to or execute a command within the Dufs container #333

Closed
opened 2026-04-08 16:52:06 +03:00 by zhus · 1 comment
Owner

Originally created by @danutzzzzz on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/562

Problem

Im unable to execute a command within the dufs docker container both bash and sh fail

docker exec -it dufs sh
OCI runtime exec failed: exec failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown
exit status 127

docker exec -it dufs bash
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
exit status 127

Configuration

serve-path: './Share'
bind: 0.0.0.0
port: 5000
hidden:
  - tmp
  - '*.log'
  - '*.lock'
  - 'Misc'
  - 'Books'
  - 'Music'
  - 'Photos'
allow-all: false
allow-search: true
allow-symlink: true
#allow-archive: true
enable-cors: true
render-index: true
render-try-index: true
render-spa: true
log-format: '$remote_addr "$request" $status $http_user_agent'
log-file: ./data/dufs.log
compress: low

Log

2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.css" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.js" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/favicon.ico" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:27Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0

Screenshots/Media

N/A

Environment Information

  • Dufs version: v0.43.0
  • Browser/Webdav info: EDGE / Windows 11 Pro
  • OS info: Debian/Docker
  • Proxy server (if any): N/A
Originally created by @danutzzzzz on GitHub (Mar 24, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/562 **Problem** Im unable to execute a command within the dufs docker container both bash and sh fail ``` docker exec -it dufs sh OCI runtime exec failed: exec failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown exit status 127 docker exec -it dufs bash OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown exit status 127 ``` **Configuration** ``` serve-path: './Share' bind: 0.0.0.0 port: 5000 hidden: - tmp - '*.log' - '*.lock' - 'Misc' - 'Books' - 'Music' - 'Photos' allow-all: false allow-search: true allow-symlink: true #allow-archive: true enable-cors: true render-index: true render-try-index: true render-spa: true log-format: '$remote_addr "$request" $status $http_user_agent' log-file: ./data/dufs.log compress: low ``` **Log** ``` 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.css" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.js" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/favicon.ico" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:27Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 ``` **Screenshots/Media** N/A **Environment Information** - Dufs version: v0.43.0 - Browser/Webdav info: EDGE / Windows 11 Pro - OS info: Debian/Docker - Proxy server (if any): N/A
zhus closed this issue 2026-04-08 16:52:06 +03:00
Author
Owner

@sigoden commented on GitHub (Mar 24, 2025):

No way, the dufs Docker container is based on scratch image and only has one command: dufs.

<!-- gh-comment-id:2748204474 --> @sigoden commented on GitHub (Mar 24, 2025): No way, the dufs Docker container is based on scratch image and only has one command: dufs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#333