Understandin GID and UID

I've been reading up like crazy on docker and have actually had some limited success. But I realized that I don't fully understand the purpose of giving a UID and GID in the compose file. (I come from Windows/OSX, so this is kind of new for me).

  1. I can get MY UID and GID, should I use that or create a user and use that?
  2. What are best practices for using this? What should I avoid doing?
  3. Why not just use the info for the current user (like when installing an app) for security unless otherwise specified?

submitted by /u/jsfarmer
[link] [comments]
Source: Reddit