#GitHub Codespaces and Docker Issue

3 messages · Page 1 of 1 (latest)

modern pike
#

I'm new to using Codespaces with GitHub. I'm working off the Autogen codespace provided for programming.

I've successfully created multiple agents have them running in a mix of gpt4 and gpt 3.5 on azure.

I'm struggling with enabling "Docker" in my Codespace on Browser or VScode.

Docker is installed and running, and my Docker Hub is connected. In the Elevated Terminal window, I can check the docker version "Docker version 20.10.5+dfsg1, build 55c4c88"

However, I have the following error when connecting to the container or building my docker file.
"
Executing task: docker build --pull --rm -f ".devcontainer/Dockerfile" -t autogen:latest ".devcontainer"

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&pull=1&rm=1&shmsize=0&t=autogen%3Alatest&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied

  • The terminal process "/bin/bash '-c', 'docker build --pull --rm -f ".devcontainer/Dockerfile" -t autogen:latest ".devcontainer"'" failed to launch (exit code: 1).
    "

Sorry if this has already been answered or if I'm missing something fundamental, I'd like to get Docker Containers running to fascillate Code execution in the Autogen notebooks.

I tried searching the discord and the FAQ for suggestions to resolve the issue, but i feel this might be more related to github/Codespaces than Autogen.

Thanks for any help

warm thunder
#

Are you using codespace? Then you can use vscode to build the docker file for you instead of building the docker image inside the codespace.

modern pike
#

I am using codespaces, the issue i was encoutering that i have now resolved is that the docker daemon wasnt sufficiently permissioned in the codespace and therefore was not able to start when the codespace was generated.