@vincentab has additional details, but I’m currently unable to get imagex_push to work running from WSL2. Docker requires it be run as root, and executing “make imagex_push” without root privileges gives:
“ERROR: no builder “grpc-plugin-server-builder” found
ERROR: failed to initialize builder grpc-plugin-server-builder (grpc-plugin-server-builder0): permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/buildx_buildkit_grpc-plugin-server-builder0/json”: dial unix /var/run/docker.sock: connect: permission denied”
We’ve made attempts to replicate the reported issue but were unsuccessful. However, we noticed a potential factor: the requirement to run Docker as root.
Can you try following these steps first and try again?
To be specific these specific set of commands:
Create the docker group.
sudo groupadd docker
Add your user to the docker group.
sudo usermod -aG docker $USER
Log out and log back in so that your group membership is re-evaluated.
If you’re running Linux in a virtual machine, it may be necessary to restart the virtual machine for changes to take effect.
wsl.exe --shutdown
wsl.exe
Verify that you can run docker commands without sudo.
Unfortunately that did not help, however I’ve seen articles mentioning that adding the user to the group does not fix the need to run Docker as root on WSL2. Either way, I’m very confused as to why running docker as root would result in the AB back-end returning an HTTP 401 unless make_imagex is attempting to read something it doesn’t have access to or something which doesn’t make a whole lot of sense either since I’m running make as root.
Hi @njupshot , I’m Eric, an SE from the Extend team.
For further investigation, could you help answer the following questions?
What version of WSL, and which distro+version of Linux was installed?
Docker initial installation. Was it over Windows, or WSL? Or potentially do you have a mixed of both now?
What version of Docker did you install?
I’ve noticed that your source code is probably on Windows C drive that’s why it’s at “/mnt/c/Upshot…”. To minimize other variables, is it possible to try to download your code to under your user’s folder within WSL and retry?