How to use docker on Linux for local development?

Hi,

The docker group is unsafe, meaning that I have to run docker with sudo, which affects the uid and gid. Therefore, there is no automated way to make the uid and gid in the container automatically match my user’s uid and gid (as described in this blogpost for instance).

How do you use docker on Linux for local development? Does docker-for-mac solves this on OSX? Is there any equivalent on Linux?

Thank you!

I think Docker for Mac like Docker for Windows runs Docker inside a VM. In the VM I do sudo anyway.