-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
ksync init cannot connect to docker daemon #517
Comments
I see #289 but it seems closed without resolution |
@tetchel Looks like you're using BTRFs as a storage driver. Unfortunately |
thanks for the response. I switched to
|
That would indicate the local docker daemon isn't available. Is there some special configuration for redhat when running the daemon? Maybe check your local docker client setup to see how it connects. |
I am just on a regular Fedora distribution. Docker is definitely running as I can build images, run
|
Well that would do it 😄 . The trace above shows it’s looking for the socket at There’s a ksync config option to give a path to the Docker socket for this reason. I can’t look it up at the moment, as I’m not at my machine, but it should™️ be in the documentation. |
sorry, my mistake, it's in both places
|
Hmm. There’s still an itch in the back of my brain about RH/Fedora releases doing something different here. Btw, I’m not sure it’s actually documented (oops), but here’s the relevant flag Line 148 in 87c8aa0
SELinux issue @grampelberg ? |
Two things to try:
|
It has the same problem
I tried some other stuff like w/ debug output:
|
I'm just shooting in the dark now, but does your docker startup config (wherever that is on Fedora) have anything in it that would be a non-standard setting? It sounds like there's something Fedora does that's non-standard but I don't know what. |
Something SELinux related? https://stackoverflow.com/questions/63215054/portainer-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-so Edit: a grammar |
I have the same issue on my Linux mint. (Ubuntu derivative)
|
I'm not sure if this helps or not but I ran into a similar issue - not 100% the same as the one described here (maybe closer to #289). I'm currently using microk8s on macOS Big Sur (microk8s is installed/configured/managed via multipass and is a VirtualBox VM). After a bit of debugging it turned out that the What I did to work around this until I can come up with a better solution was run two socat instances, the first on macOS exposing /var/run/docker.sock as a TCP service:
then another inside the VM connecting to the TCP service on macOS and recreating the socket in /var/run/docker.sock:
This is a total hack for now but I just needed to determine where the issue was. I first attempted to share /var/run/docker.sock into the VM but due to it being a unix socket it looses access to the kernel inside the VM and becomes a file - socat to the rescue ;-) |
Very creative!
…On Fri, Jul 16, 2021 at 12:08 AM Tim Philips ***@***.***> wrote:
I'm not sure if this helps or not but I ran into a similar issue - not
100% the same as the one described here. I'm currently using microk8s on
macOS Big Sur (microk8s is installed/configured/managed via multipass and
is a VirtualBox VM). After a bit of debugging it turned out that the rpc
error: code = Unknown desc = Cannot connect to the Docker daemon at
unix:///var/run/docker.sock. Is the docker daemon running? error that I
was getting was because the ksync pod couldn't access the Docker socket -
which makes total sense because in my situation Docker is running on macOS
not inside the VirtualBox VM.
What I did to work around this until I can come up with a better solution
was run two socat instances, the first on macOS exposing
/var/run/docker.sock as a TCP service:
socat -d TCP-LISTEN:17443,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock
then another inside the VM connecting to the TCP service on macOS and
recreating the socket in /var/run/docker.sock:
sudo socat -d UNIX-LISTEN:/var/run/docker.sock,reuseaddr,fork TCP:[macOS
host IP]:17443
This is a total hack for now but I just needed to determine where the
issue was.
I first attempted to share /var/run/docker.sock into the VM but due to it
being a unix socket it looses access to the kernel inside the VM and
becomes a file - socat to the rescue ;-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#517 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIR4FOSTD3MDLHZTUCOUQ3TX7LIXANCNFSM4Z7YNQOQ>
.
|
Alright it's been a year. Where is the support. |
@kaiivoschneider Was there something in particular you were looking for. In general this project is largely defunct and both @grampelberg and myself have moved on to other things. I do my best to answer what I can, but there won't be any significant work on the project. |
hi, I am trying to run
ksync init
to set up ksync on a CodeReady Containers cluster running locally on my Fedora machineksync init
failed with this message:Adding
sudo
results in the same error message.dockerd
is running and i can run alldocker
commands as my current user since I am part of thedocker
group.Thanks for any help
The text was updated successfully, but these errors were encountered: