apiVersion: v1
kind: Pod
metadata:
  namespace: kube-system
  name: pod-docker-volume
spec:
  containers:
  - image: public.ecr.aws/eks-distro/kubernetes/pause:v1.21.5-eks-1-21-8
    name: no-volume
  - image: public.ecr.aws/eks-distro/kubernetes/pause:v1.21.5-eks-1-21-8
    name: docker-volume
    volumeMounts:
    - name: dockersock
      mountPath: "/var/run/docker.sock"
  volumes:
  - name: dockersock
    hostPath:
      path: /var/run/docker.sock