I am building a infrastructure with docker and kubernetes, allowing users to run their applications on it.
If user uses VOLUME in Dockerfile, docker will mount a local volume for it. I don’t want this happen, because volumes are allocated on rootfs without space quota and numbers of volumes cannot be limited by Kubernetes.
Is it possible to disable docker local volume support?
The daemon itself does not have an option to disable volumes, but you can use
an “authz” plugin to block API requests that attempt to use a volume. For example;