exasol / ai-lab

Development environment for data science developers
MIT License
3 stars 0 forks source link

Explain how to solve the Permission Denied Error for AI-Lab Docker Edition with Windows Docker Desktop #274

Open tkilias opened 3 months ago

tkilias commented 3 months ago

Under Windows with Docker Desktop (WSL2 doesn't seem to be necessary), docker socket has no write access for the group. For that reason, the entry point fails with a Permission Denied Error when the docker socket is mounted. You can use the following commands to give the group write access. We should add this to the documentation, but also make clear that this should discussed with the responsible administrator of the system.

Start your Docker Desktop and open the command prompt. Run the following command in the command prompt:

docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock ubuntu chmod g+w /var/run/docker.sock

to check if the command was successful, run:

docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock ubuntu ls -l /var/run/docker.sock

the output must be: srwxrwxr-x 1 root root 0 May 14 07:07 /var/run/docker.sock

Now you run:

docker run --name ai-lab --volume my-vol:/home/jupyter/notebooks --volume /var/run/docker.sock:/var/run/docker.sock --publish 0.0.0.0:49494:49494 exasol/ai-lab:2.0.0