Skip to content

Commit

Permalink
Dockerfile: Remove VOLUME directive.
Browse files Browse the repository at this point in the history
The `VOLUME` directive causes Docker to provision host storage to cover
the implicitly requested volume mount. For security reasons this may be
disallowed by Kubernetes clusters, causing kube-state-metrics containers
to fail to be created.
  • Loading branch information
brancz committed May 31, 2018
1 parent 82a6e3c commit dd66f2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM alpine:3.7

COPY kube-state-metrics /
VOLUME /tmp

ENTRYPOINT ["/kube-state-metrics", "--port=8080", "--telemetry-port=8081"]

Expand Down

0 comments on commit dd66f2d

Please sign in to comment.