-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Container do not start #11
Comments
Got the same Issue |
Apparently this is Docker related - see this: https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva/1054414#1054414 I would also look at this - moby/moby#42275 |
@conrad-roux PRs are welcome if you've found a workable solution. I'm focused elsewhere on the project and, frankly, Docker isn't my strong suit. @jrcichra any of the above look familiar? |
Hi, I'll look at this over the weekend. I have a new Pi 400 ready to test RaspAP in docker on. I'd like to try moving away from systemd in a container to a process management that is better suited for running in a container. Maybe something like: http://supervisord.org/ ? Also, instead of running the install script in the container, I've been playing around with the idea of an Ansible playbook that installs RaspAP based on the Manual Installation steps: https://docs.raspap.com/manual/. What I have now needs some tuning, it doesn't fully function. But I think the ideal container would run though the manual installation process, installing all the options, and then hooking in all the required daemons to a more friendly init system. We could also improve the install script to support a no user-input mode & set up an alternative init system to systemd. |
Great! You're welcome to expense this purchase for the project, if you like. We have budget for it.
Something like this? 😉 https://github.com/RaspAP/raspap-ansible |
Neat! I'll look more into it.
I should have done my homework before tinkering. This is great! I'll start here. |
Has there been any progress with this? I would like to run RaspAP in a Docker container but I can't get it to start, same error as above. |
I'd love to hear about any kind of update, docker container would solve so much issues for me. |
i created a dockerfile.. tested on nanopi and jetson nano |
any update? getting same error as well. |
Yep, same error. |
fixed in #20 /close |
Host is Raspberry Pi 3B
command:
docker run --name raspap -it -d --privileged --network=host -v /sys/fs/cgroup:/sys/fs/cgroup:ro --cap-add SYS_ADMIN jrcichra/raspap-docker
log:
systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
Detected virtualization docker.
Detected architecture arm.
Welcome to Debian GNU/Linux 10 (buster)!
Set hostname to .
Failed to create /init.scope control group: Read-only file system
Failed to allocate manager object: Read-only file system
[!!!!!!] Failed to allocate manager object.
Exiting PID 1...
The text was updated successfully, but these errors were encountered: