---
apiVersion: batch/v1
kind: Job
metadata:
  name: job-docker-volume
spec:
  parallelism: 1
  completions: 5
  backoffLimit: 4
  template:
    spec:
      containers:
      - name: pause
        image: public.ecr.aws/eks-distro/kubernetes/pause:v1.21.5-eks-1-21-8
        volumeMounts:
        - name: dockersock
          mountPath: "/var/run/docker.sock"
      restartPolicy: Never
      volumes:
      - name: dockersock
        hostPath:
          path: /var/run/docker.sock
