I made fixdockergid to prove that #19 is a valid use case.
However, it would be so cool to have this functionality in fixuid instead, so we would not have to deal with this twice. fixdockergid depends on fixuid being installed.
This problem happens when you mount the docker.sock from the host machine on the container, and you try to access it using a non-root user. Then, the docker group id on the host can mismatch with the docker group id from the container, thus causing the non-root users to receive permission denied errors when trying to run docker commands. Microsoft solved it by using socat: https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-from-docker#enabling-non-root-access-to-docker-in-the-container
But I consider this approach much better, less intrusive, and less expensive.
I made fixdockergid to prove that #19 is a valid use case.
However, it would be so cool to have this functionality in
fixuidinstead, so we would not have to deal with this twice.fixdockergiddepends onfixuidbeing installed.This problem happens when you mount the
docker.sockfrom the host machine on the container, and you try to access it using a non-root user. Then, thedockergroup id on the host can mismatch with thedockergroup id from the container, thus causing the non-root users to receive permission denied errors when trying to run docker commands. Microsoft solved it by usingsocat: https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-from-docker#enabling-non-root-access-to-docker-in-the-containerBut I consider this approach much better, less intrusive, and less expensive.