-
Notifications
You must be signed in to change notification settings - Fork 15
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
Testing rustysd inside of a docker container? #15
Comments
I'm pretty sure what you're talking about is in https://github.com/KillingSpark/rustysd/tree/master/dockerfiles. See the readme there to run it. It worked pretty marvelously for me. |
I would be very interested in you linuxkit yml files whenever you get this up and running, please! Also, what use case do you have for a linuxkit unikernel setup? If you don't mind me asking. |
Yes, I get binaries build, but I need to prepare build env before. Would be nice to run a runstysd/build container with docker and get the binaries to /target directory at the end... Created a simple alpine based image which starts rustysd with the default unit
But I'm new with systemd / rustysd and have to learn how to spawn a shell from unit... I played with linuxkit before to build fully custom systems for example without the typical onboot / services structure or replaced runc / containerd with a custom runc or docker / podman build. Linuxkit is a awesome build environment for that use case! I think it should be easy to build a running minimal system with rustysd + shell (if I understand how to do it with units and create a rustysd-builder first... |
Tried a getty service, but fails with:
So I changed it to /bin/sh
And I have a running container with rustysd and a sh process...
unit file getty.service (=shell)
So is it possible with rustysd to start getty-service in foreground / interactive / focused tty? |
Mind tossing me the linuxkit |
At the moment it isn't a linuxkit file, just a docker image with alpine linux + rustysd binaries. I try to get a shell in the end of the rustysd boot, but don't know if that really could work as I think and if rustysd supports to move PID1 to the background and end up in a working shell (service)? |
I am sorry I can't be of too much assistance here but I don't exactly know how docker and getty interact. I think you should look into the error getty throws out
|
Yes, thats right. But I don't find why. Maybe it's getty related,.. agetty works. @cdbattags
It boots fine with qemu, but you won't end in a working shell / terminal...
|
rustysd works fine as systemd replacement inside of docker containers! rustysd runs as pid1 and services started. tty problem was related to qemu / console settings and works fine with hardware on tty1. So time to play with rustysd 👍 |
Hi @KillingSpark ,
have you build a minimal docker image to run rustysd with a simple example unit as docker container pid1 (#9)?
I would like to test it as docker container and maybe build a small system based on rustysd. I use the build tool linuxkit to build an os image based of docker containers. So a minimal image with rustysd as entrypoint would be great as starting point.
Regards
The text was updated successfully, but these errors were encountered: