Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker desktop & knative & knative func

i have installed ubuntu 22.04, docker desktop, enabled kubernetes in docker desktop, installed knative serving, installed 'func' but when i do "func build" from terminal gives this error; "ERROR: failed to initialize docker client: failed to connect to docker socket: dial unix /var/run/docker.sock: connect: connection refused" i did "export DOCKER_HOST=unix:///home/user/.docker/desktop/docker.sock" but didn't help.

how can i change socket address to right one?, knative 'func' is also looking for "dockerd" daemon, if i install it with sudo apt install docker.io it removes docker desktop, what should i do?

like image 981
Septimus Avatar asked Sep 08 '26 19:09

Septimus


1 Answers

Your docker is not running. Please try to restart the docker desktop.

like image 148
Vishal Avatar answered Sep 11 '26 09:09

Vishal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!