Docker volume user permissions

Matt Gosden
4 min readDec 1, 2022

I finally got my head around the user permissions using Docker on a Linux host. It’s actually quite simple. This is a quick summary that helps align permissions inside and outside of the container.

Understanding how user permissions work inside and outside of the container matters when you are mounting a directory as a volume (a bind mount) and you want to access and update files from both inside and outside of the container.

Key point 1 — Linux users are defined by UID not username

--

--