kasmtech / workspaces-issues

18 stars 3 forks source link

Creating a docker container outside of Kasm #559

Closed ZuluPilgrim closed 1 month ago

ZuluPilgrim commented 1 month ago

I have installed a stand alone Kasm server following https://www.kasmweb.com/docs/latest/install/single_server_install.html#installation-guide.

I am wanting to create a docker container for some other project that I am looking at but when I try and bring it up using docker compose up -d

I get

myadmin@kasm-01:~/docker/stirling-pdf$ sudo docker compose up -d && docker compose logs -f
[+] Running 1/1
 ⠿ Container stirling-pdf-stirling-pdf-1  Started                                                                                                                                                                                       8.3s
Got 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/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.oneoff%3DFalse%22%3Atrue%2C%22com.docker.compose.project%3Dstirling-pdf%22%3Atrue%7D%7D&limit=0": dial unix /var/run/docker.sock: connect: permission denied

I have tried adding myadmin to the docker group but this did not help sudo usermod -aG docker myadmin

Is there another group that I need to add myadmin to?

Actually I just checked and the container is working just fine. So my questions are:

  1. What does the above mean?
  2. Do I need to worry about it?
  3. How would I address it if I wanted to?
ZuluPilgrim commented 1 month ago

Once I logged off and on again, it seemed to be fine.