0

Having a weird issue running dind on k8s when mounting volumes from host

so I have docker which runs another docker container using host socket a specify -v command to that children docker but the mounted directory contains only .go directory.

The very same command works just fine on local machine

There's no errors in the output.

+ docker run -v /home/jenkins/agent/workspace/app/test:/src busybox:latest /bin/sh -c 'find /src'
/src
/src/.go
/src/.go/bin
/src/.go/bin/linux_amd64
/src/.go/bin/linux_amd64/linux_amd64
/src/.go/cache

Thanks

David Maze
  • 130,717
  • 29
  • 175
  • 215
kotyara85
  • 305
  • 3
  • 12
  • 3
    is your docker daemon in privileged mode? https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities – Hakan Dilek Jun 10 '20 at 20:57
  • Please let us know if the solution posted by Hakan Dilek helped you. Additionally does a user which is running this command have appropriate rights to this files/directory. – Dawid Kruk Jun 15 '20 at 13:28

0 Answers0