Skip to main content

User IDs from command line

Many Docker containers need UserID and GroupID.

The environment variables can be slightly different for each compose file, e.g: PUID, PID, GUID, PGUID or similar.

The ID numbers can vary depending on your operating system. On my Synology NAS, both IDs = 1026. On my minipc, both IDs = 1000.

There are various methods to find these ID numbers, but the easiest is to just SSH into the device you will be running the container on and type the following command: