docker-compose.yml 797 B

12345678910111213141516171819202122
  1. version: '2.2'
  2. services:
  3. kubelet:
  4. build: .
  5. image: fphammerle/kubelet
  6. command: kubelet --container-runtime docker
  7. volumes:
  8. - '/var/run/docker.sock:/var/run/docker.sock'
  9. userns_mode: host
  10. # > F0401 17:47:53.440731 1 kubelet.go:1413] failed to start OOM watcher open /dev/kmsg: no such file or directory
  11. devices:
  12. - /dev/kmsg
  13. # > mount("/var/lib/kubelet", "/var/lib/kubelet", 0xc00097656c, MS_BIND, NULL) = -1 EPERM (Operation not permitted)
  14. # > F0401 15:36:24.291067 8 kubelet.go:1413] error configuring root directory: failed to bind-mount /var/lib/kubelet: operation not permitted
  15. cap_add:
  16. - SYS_ADMIN
  17. #- SYS_PTRACE
  18. security_opt:
  19. - 'apparmor:unconfined'
  20. # https://docs.docker.com/compose/compose-file/compose-file-v2/