-
Notifications
You must be signed in to change notification settings - Fork 6
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
Tutoring and Help with RunImage #13
Comments
@fwn0 Create docker dir:
Run runimage in overlayfs mode, with sandbox network and with bubblewrap fake root and with bind docker dir:
Install docker:
Run the docker daemon in the runimage network sandbox on 127.0.0.0.1:1337 :
And now you can run docker:
But there are some limitations:
I may need to analyze the dockerd source code (runc, containerd) and apply some tricks to fix these errors (as I already did for runimage-openssh). I would be glad to have help in this endeavor. Alternatively, you can use udocker as an option. This is not a full-fledged replacement for docker, but it's still not bad either. |
Thank you for your introduction Maxim, it may not be necessary to install docker or podman. I will now experiment a bit with crun. Maybe it will be much easier to run the docker images, containers, volumes with crun. |
I have managed to create a running rootless alpine container with 0.40.4 using crun (without podman or docker). Unfortunately I couldn't find out how to activate internet connection as well. I tried to configure it with RIM_RESOLVCONF_FILE=/path/resolv.conf, but so far I have no connection. Can you please give me instructions on how to create the connection in docker-container? But now I have another problem with user/group. I would like to create jellyfin server with client in RunImage, but as you can see, here is a problem. artix-pc:[artix]: How can I solve the problem(s) ? |
@fwn0
By default, runimage bind groups and users from the host, to change this, you can use
In the case of systemd units, you can try to remove user and group changes from the unit. |
For jellyfin
or you can add the necessary services to autostart
and then use init
|
In v0.40.5 now added pacman hook in fake-systemd package which fixes SystemD units. So now all you have to do is just install jellyfin and run it:
|
Hello Maxim,
I am already looking forward to the new upcoming runimage 0.40.1, which you are currently preparing (as I see in your github activity).
But now I have a request for you. I don't understand exactly how your fake-systemd works for starting docker. I have installed docker and docker-compose in the runimage with pac, but now I can't figure out how to start the daemon with fake-systemd before rebuild a new runimage-docker. I mean, how do I use the standard command systemctl start docker.service, systemctl enable docker.service in the new runimage-docker?
I also wanted to ask, how should the structure of containers, images and volumes look like? Can docker in runimage then serve the containers, images, etc., only in runimage which are placed on rootfs, overlayfs, or also outside of runimage, e.g. on ~/ri-portable-progs ?
The text was updated successfully, but these errors were encountered: