-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Kubelet failed to detect running docker process when name is not docker
#26259
Comments
@Gnouc It's probably best to open a bug against OpenShift Origin and close this one: |
@dims why Openshift Origin? If I ran kubernetes alone, the same issue occur. I think we should state this an OS bug, or make |
@smarterclayton - what's the best venue for this bug? |
This is a Kubernetes bug - the line referenced by @Gnouc points out that the kubelet assumes the docker binary is called "docker" which is not necessarily the case. |
I think at a minimum that should not be a constant, but be defaulted. The workaround for now is to hardlink the |
docker
@smarterclayton thanks, sounds good. I have heard many times that there are patches/hardening to docker and kubernetes and was not sure. |
@smarterclayton If you don't mind, I can push the fix for this issue. |
@smarterclayton I'm having the same issue. If you don't mind explaining how to hardlink docker-current process to docker. Thanks |
|
thanks |
I couldn't do a hard link in a bin directory as there already is a file named docker, so i moved docker-current, renamed it to docker and edited the /usr/lib/systemd/system/docker.service file with the new location of the renamed docker-current file. |
My didn't access it with https. |
@derekwaynecarr system container Cgrouping is broken with the latest docker packages due to the process name changing. |
@acavas1 : can you try setting the pidfile parameter for your docker daemon? that may be an easier work around? --pidfile=/var/run/docker.pid Thanks, |
@acavas1 Change the docker script to use |
This has been fixed in Kubernetes here: |
The origin cherry pick is here: openshift/origin#9060 |
@TomasTomecek @smarterclayton : i am also facing the same issue in origin 1.2.0 with quick installation method. Can anybody tell me is this resolved and whats docker-current. how to use the workaround. |
Hi @priyanka5, let's move this discussion to the origin repository (issue openshift/origin#9060) |
@dims I tried your solution on origin 1.2.0 (--pidfile in /etc/sysconfig/docker and restart) but this doesn't seem to help for me |
@Gnouc How does your /usr/bin/docker looks like? Tried to configure your changes but still the log after restarting
|
@lvthillo Here is it:
Change the shebang to |
@Gnouc Thanks for the fast reply.
I restarted everything:
in logs: |
What I don't really understand is the fact that:
|
"/usr/bin/docker" is not used from the systemd. |
@khanamura
|
@lvthillo Change |
@lvthillo and then systemctl daemon-reload |
@khanamura @Gnouc Thanks, it works |
@khanamura |
I used this instructions to install Openshift Origin v3, along with its embed Kubernetes. All thing is fine until I get the error:
It's weird, I'm sure that docker was started:
I go through
kubelet
and seems to find the culprit, in this line:dockerProcessName
was hard-coded todocker
, while in my system, thedocker
process nameddocker-current
:/usr/bin/docker
is actually a shell script, which will calldocker-current
:My OS is:
I'm not sure it should be considered an OS bug, or
kubelet
bug itself?The text was updated successfully, but these errors were encountered: