<p>I'm not sure if I have a configuration error or I just don't know where to look but I can't seem to find where my files are being stored with these configurations</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: tmp-storage
spec:
  storageClassName: manual
  capacity:
    storage: 2Gi
  accessModes:
    - ReadWriteMany
  hostPath:
    path: /tmp/netes
    type: Directory
</code></pre>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: tmp-storage-claim
spec:
  storageClassName: manual
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Gi
</code></pre>
<p>Deployment</p>
<pre><code>spec:
  volumes:
    - name: abcd
      persistentVolumeClaim:
       claimName: tmp-storage-claim 

  containers:
    ...
    volumeMounts:
      - mountPath: '/tmp'
        name: abcd
</code></pre>
<p>I've tried accessing the docker desktop vm with <code>docker run -it --rm --privileged --pid=host justincormack/nsenter1</code> but there is nothing inside <code>/tmp</code></p>
<p>There's also nothing on my computer inside <code>/tmp</code></p>
<p>I've also tried looking in <code>/Users/username/.docker/Volumes/</code> but I have no volumes directory in that location</p>

Jason M
<p><strong>Here how I found it on my Mac:</strong></p>
<p><strong>1.</strong> Create PV, PVC, Deployment as you've mentioned. I've just change the PV <code>spec.hostPath.type</code> to <code>DirectoryOrCreate</code></p>
<p><strong>2.</strong> Create a file on the volume using pod shell:</p>
<pre><code>kubeclt exec -ti the-deployment-pod-name-here -- touch /tmp/somefile2.txt
</code></pre>
<p><strong>3.</strong> Run <code>nsenter</code> pod:</p>
<pre><code>docker run -it --rm --privileged --pid=host alpine:edge nsenter -t 1 -m -u -n -i sh
</code></pre>
<p><em>(on the recent DockerDesktop 3.5.1<br />
<code>screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty</code><br />
doesn't show me a VM shell prompt any more)</em></p>
<p><strong>4.</strong> Find the file using <code>find</code> in the <code>nsenter</code> container filesystem:</p>
<pre><code>/ # find / -name somefile2.txt
/var/lib/mount-docker-cache/entries/docker.tar/a08ee16361132af943875aee79aae165cdbfaf0d203ee97fe9d61d29e307aceb/containers/services/docker/tmp/upper/tmp/netes/somefile2.txt
/var/lib/mount-docker-cache/entries/docker.tar/a08ee16361132af943875aee79aae165cdbfaf0d203ee97fe9d61d29e307aceb/containers/services/docker/rootfs/tmp/netes/somefile2.txt
/var/lib/mount-docker-cache/entries/services.tar/bbec751ae945082378b0b2d4a7c6e32f9c35164315587914a95acc4bee8df1ff/containers/services/docker/tmp/upper/tmp/netes/somefile2.txt
/var/lib/mount-docker-cache/entries/services.tar/bbec751ae945082378b0b2d4a7c6e32f9c35164315587914a95acc4bee8df1ff/containers/services/docker/rootfs/tmp/netes/somefile2.txt
/containers/services/docker/tmp/upper/tmp/netes/somefile2.txt
/containers/services/docker/rootfs/tmp/netes/somefile2.txt
</code></pre>
<p><strong>5.</strong> Most promising paths that should work for most cases are:</p>
<pre><code>/containers/services/docker/tmp/upper
/containers/services/docker/rootfs

+ PV hostPath: /tmp/netes
+ filename: somefile2.txt
</code></pre>
<p><strong>Note:</strong> <code>HostPath</code> PV files are located in DockerVM filesystem. I haven't found a way to share Mac folder to PV in DockerDesktop Kubernetes Pod <em>for now</em>.</p>
<p><strong>Note2:</strong> Without specifying <code>StorageClass</code> in PV and PVC, DockerDesktop Kubernetes assigns a default storage class which in my case was <code>hostpath</code> and generates a folder for the PV in the DockerVM temporary location:</p>
<pre><code>/var/lib/k8s-pvs/tmp-storage-claim/pvc-dafbcdf6-a3e8-47cc-af1a-cf740d8ffcd0/somefile2.txt
</code></pre>
