Description
Using the self-hosted runners, I ran into an issue where the ID of the docker group was relevant in order to implement a workaround. The details of that problem are not relevant, just that the ID of the docker group was needed.
In the last day or two, something changed (I imagine the image deployed to the self-hosted runners) and the ID of the docker group changed again.
As I write this, the GID on arm64 is 116 and on amd64 it's 117.
Without having looked at the process used to create the images, I can guess it involves installing the docker package on Unbuntu. The configure step of that package's installtion includes this:
# Make sure the "docker" system group exists for "docker.socket"
# to apply it as the group on "docker.sock"
if ! getent group docker >/dev/null 2>&1 ; then
addgroup --system docker
fi
the call to addgroup will create the docker group and it will assign the next available gid, this is the reason why the id keeps changing.
Again, without having looked at how the images are built, this is fixed by creating the docker group before installing the docker package, and assigning a fixed GID to it.