-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issues running a Rancher container inside a Sysbox container #51
Comments
@sanzenwin, unfortunately Sysbox doesn't support Rancker/K3s yet, but this is something that we will be adding fairly soon. Can you please let me know what's the use-case that you have in mind for Sysbox? Maybe we can offer you a workaround. |
@rodnymolina, Rancher is easier to deploy than K8s, I trying to test it on single machine. I will focus on your another project : |
Thanks @sanzenwin for reporting the issue.
It seems the rancher container entrypoint is looking for the presence of
It's strange because
Thus we would expect that running inside a privileged container inside the sysbox container would also expose that device inside the container:
We need to dig into why that is the case. I suspect the Docker instance running inside the Sysbox container did not like the "nobody:nogroup" on /dev/kmsg and as a result did not pass it into the inner Rancher container. Fortunately it's easy to work-around this by passing the device into the container explicitly with
That causes the rancher container to initialize. I am not familiar with Rancher (yet) so I can't tell if it initializes correctly, but it appears it did. Please give that a try and let us know. Thanks! |
Good idea! I see k3s control-plane coming up but there are a few errors being dumped by rancher, so i'm not sure how reliable this will be till we fully test it in our setups. @streamnsight, let us know how it goes with Cesar's workaround.
|
There is a network issue on it. |
I am trying to deploy Rancher in single node, build clusters environments for dev server,testing server and so on, and finally deploy it to production(single-node or multi-node). The docker:dind is suggested for test environment only, so I want to use Sysbox, and deploy it to production. My steps:
Can you offer me a workaround? |
We also would love to have support for this. Is there any progress on this issue? Also we found that rancher image fails to extract on docker running inside sysbox container:
It pulls and stars rancher with dind setup. Some context, we're running sysbox 0.5.x setup. All files are accessible from within /var/lib/docker and all belong to normal users:
|
@aisbaa, I don't remember seeing this error in this context (i just reproduced) so it must be something new that we will need to look into. Having said that, what's the use-case that you have in mind? Do you need the rancher-server to operate within a Sysbox container, or would it suffice to have any of its components (e.g., k3s, rke, rke2)? I'm asking coz the latter ones should work fine. |
We're using kubernetes pods as development environments for our engineer, we call those devpods. Currently we're using k3d as development environment for kuberentes.
The end goal is to find working configuration for k3d or other tool that can run kuberentes inside docker. I tried running default k3d configuration and it did fail due to
Having said that I've noticed that sysbox should support k0s, which I don't recall if we evaluated. So we might be able to swap k3d with k0s. P.S. Sorry conflating |
The text was updated successfully, but these errors were encountered: