Docker fuse

Tuesday, Dec 24, 2024 | 1 minute read | Updated at Tuesday, Dec 24, 2024

@
Docker fuse

docker fuse权限问题

docker fuse

At first, you should have docker image with installed fuse package inside container. For allow mount inside container need to run docker run command with --cap-add SYS_ADMIN --device /dev/fuse:/dev/fuse --security-opt apparmor:unconfined

For docker-compose need to put inside docker-compose.yml file:

cap_add:
  - SYS_ADMIN
devices:
  - /dev/fuse:/dev/fuse
security_opt:
  - apparmor:unconfined

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。