October 3, 2020

Accessing persistant volumes in Docker Desktop for Mac

As I was getting some work done, I came across an edge case the other night where I needed to view the contents of a file in a Docker volume that was running on my Mac.  

Unlike a Linux box, you can not navigate directly to /var/lib/docker/volumes.


On a Mac, You have to jump through a few steps outlined below:


Hopefully this helps! I know I will be revisiting this article the next time I need to do this!