Alright, I’m diving in — I’m migrating my Gladys from an rPi4 to a mini-PC. But I’m stuck on something I don’t understand at all: the file access permissions managed by Ubuntu. I need help to get started…
The mini-PC is an INTEL NUC 3700 with 8 GB of RAM and a 128 GB SSD. I installed a brand-new Ubuntu Server 24.04 (checking the option to have Docker installed at the same time), and I connect via SSH (with the user I configured during the Ubuntu Server install) without issue from another computer, ready to install Gladys as explained on Installation avec Docker | Gladys Assistant
But when I tried to run « docker run […] gladysassistant/gladys:v4 » (I’m not copying the entire command, it’s the one from Gladys’ docs page…), I got the following error :
docker: 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/cont ainers/create?name=gladys\": dial unix /var/run/docker.sock: connect: permission denied.
And when I add ‹ sudo › before the command, the downloads proceed but I then get the error
docker: Error response from daemon: error while creating mount source path '/var/lib/gladysassistant': mkdir /var/lib/gladysassistant: read-only file system.
Ideally, I’d like two things from anyone who can help me:
to know how to resolve the situation
to have an explanation of the permission logic in Ubuntu, because I don’t understand why the user I create during the Ubuntu installation isn’t « all-powerful » But well, this second point may not be explainable in a few lines
Could installing Docker by checking the option during the Ubuntu Server installation have been a bad idea? Since I’m only at the beginning of my operations, I can redo the Ubuntu installation and install Docker afterwards (as indicated on the Gladys documentation page…)
Thanks @cicoub13 and @guim31 for your advice.
Creating the docker group did indeed solve the issue of being able to run docker commands without ‹ sudo ›. But I still had the ‹ read-only file system › error.
I looked into it a bit, but it annoyed me, I admit So I reinstalled Ubuntu Server without docker, then installed docker using the instructions in the Gladys docs. And it works without any issue, Gladys is fully operational.
@StephaneB Congrats on migrating to a mini‑PC, it’s going to change your life
Good that you found a solution — indeed, generally installing Docker via the Ubuntu packages is rarely a good idea; the packages are often old versions!
Good evening
I’m trying on the Beelink mini PC; after fixing the network connection problem, I find myself in the same situation as @StephaneB
I installed Ubuntu 24.04 server, then I followed @pierre-gilles’ tutorial and I’m stuck: when I run docker ps, I get a permission denied — to what? I don’t know
here is the response to the command
gladys@gladyserver://$ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/json": dial unix /var/run/docker.sock: connect: permission denied. Comment puis je me sortir de ça.? faut il vraiment créer un groupe docker?
merci d'avance