Docker volume is not recognized as epihemeral storage

Cluster information:

Kubernetes version: 1.21
Cloud being used: bare-metal
Installation method: N/A
Host OS: Ubuntu 20.04.3 LTS
CNI and version: N/A
CRI and version: N/A

I’m currently verifying ephemeral storage, but I had a problem. The docker volume, that is, the area specified by VOLUME in the Dockerfile, is not recognized as ephemeral storage on kubernetes. I set the limit of epihemeral storege in resources, but it was not evicted even if I put a large file in the area specified by VOLUME.

I came up with a way to remove the VOLUME statement by forking the image launched as a pod as an easy solution, and it actually worked. However, I don’t think it’s beautiful. Is there any other way to make the area specified by VOLUME recognized as epihemeral storage?