Skip to content

Instantly share code, notes, and snippets.

@vadym-martsynovskyy-hs
Created July 27, 2018 18:24
Show Gist options
  • Save vadym-martsynovskyy-hs/eef1751d8362c4f512d58f268ca79110 to your computer and use it in GitHub Desktop.
Save vadym-martsynovskyy-hs/eef1751d8362c4f512d58f268ca79110 to your computer and use it in GitHub Desktop.
containers:
- name: my-container
# ...
# other container config here
# ...
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-socket-volume
securityContext:
privileged: true
volumes:
- name: docker-socket-volume
hostPath:
path: /var/run/docker.sock
type: File
@collimarco
Copy link

It fails with this error:

MountVolume.SetUp failed for volume docker-socket-volume: hostPath type check failed /var/run/docker.sock is not a file

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment