Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon error that appears without changes in the system and with fresh installation. #462

Open
TheTechOddBug opened this issue Dec 20, 2024 · 2 comments

Comments

@TheTechOddBug
Copy link

Docker was working in my Ubuntu 22.04 system till the day before yesterday but now I'm getting:
docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Removing any docker piece and reinstalling following the install instructions in:

https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

I've ended with the same error.

My version is:
docker --version
Docker version 27.4.1, build b9d17ea

What has changed?

@thaJeztah
Copy link
Member

Hard to tell without more details; I would recommend looking for daemon logs, for the docker service (which may be in your system logs) to see if an error is reported that caused the docker service not to start.

e.g., to get the last 100 log-entries from the docker service;

journalctl -n500 -u docker.service

But logs may also be in your syslog in other places, which can sometimes correlate daemon logs with other events happening on your system;

tail -n 500 /var/log/syslog

@thaJeztah
Copy link
Member

But it's even possible there was no error, but the service was not configured to start automatically, so you could try starting it (systemctl start docker.service)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants