Cannot connect to the Docker daemon (OD-989)
Closed
difof opened 1 year ago

Hello. Onedev build was working fine until I changed BUT reverted my docker service at /lib/systemd/system/docker.service to open docker's tcp API. Docker wasn't starting on a few times of doing systemctl restart docker. Now I reverted the service, the /var/run/docker.sock is there and I can run my compose file with onedev in it. But the onedev's build says Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? I'm just doing a docker build job after checkout.

The docker socket is mounted on onedev's service and it's not readonly. It was working before but now it doesn't. What could be the problem?

Robin Shen commented 1 year ago

Have you checked the option "mount docker sock" in the job executor? By default it is not mounted for safely reason.

difof changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
difof commented 1 year ago

@robin Added the executor and it worked! Thank you

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
OD-989
Please wait...
Page is in error, reload to recover