Install error: 1/1 mkdir /var/lib/docker: read-only file system
I'm trying to install using
curl -sSL https://dokploy.com/install.sh | sh
I get this error:
1/1 mkdir /var/lib/docker: read-only file system
- im on the root user
- im on ubuntu server v22
- i have docker already installer .
hey there, so going by what you said, you already have docker installed, check the permissions for the /var/lib/docker folder using this command ls -ld /var/lib/docker to see the kind of permissions you currently have, because i'm guessing that's the issue
if you see anything other than drwx--x--- 12 root root 4096 DATE TIMESTAMP /var/lib/docker then there's a problem, you have a bit of permission issues, you should be able to fix it with this command
sudo chown -R root:root /var/lib/docker
sudo chmod -R 755 /var/lib/docker
then restart the server or just maybe restart docker withsudo systemctl restart docker
same error, this is what I get when I run the command ls -ld /var/lib/docker
root@ubunto:~# ls -ld /var/lib/docker
drwxr-xr-x 2 755 root 4096 May 6 13:02 /var/lib/docker
Using docker info command, i get this:
....
Docker Root Dir: /var/snap/docker/common/var-lib-docker
....
The default docker root is 'var/snap/...' not 'var/lib/...'
Questions:
- Did you have already installed docker before run the installation command?
- What VPS provider are you using?
@Siumauricio 1- Yes i have already installed docker before running the install command ( im using docker for other things)
2- im running Ubuntu server on a local pc and accessing it using ssh
can you try this ?
- sudo su
- curl -sSL https://dokploy.com/install.sh | sh
can you try this ?
- sudo su
- curl -sSL https://dokploy.com/install.sh | sh
I tried, same error
My only recomendation to avoid this issue permissions is start from a fresh installation, because this clearly is Docker issues which doesn't have the right access to docker enviroment because you already had docker installed
Have you found a solution for this @adelpro ? Can you reinstall docker?
Have you found a solution for this @adelpro ? Can you reinstall docker?
Unfortunately i can't reinstall docker i have other containers up and running. I tried to stop docker service, the installation of Dokploy was completed with no errors, but after restarting the docker service, i didn't find the Dockploy container.
I finally installed, my docker was installed on ubuntu server using snap, i uninstalled docker then re-installed using the official documentation (link here) Then i used the official install script to install Dockploy (linkhere)
Glad to hear that, any related errors you can open another issue, thank you!