Skip to content
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

Closed
DerDoubleD opened this issue Jan 18, 2022 · 12 comments
Closed

Container do not start #11

DerDoubleD opened this issue Jan 18, 2022 · 12 comments
Assignees

Comments

@DerDoubleD
Copy link

DerDoubleD commented Jan 18, 2022

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...

@DNAScanner
Copy link

Got the same Issue

@conrad-roux
Copy link

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
It would be nice if it can be fixed

@billz
Copy link
Member

billz commented Apr 20, 2022

@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?

@jrcichra
Copy link
Collaborator

jrcichra commented Apr 21, 2022

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.

@billz
Copy link
Member

billz commented Apr 21, 2022

Hi, I'll look at this over the weekend. I have a new Pi 400 ready to test RaspAP in docker on.

Great! You're welcome to expense this purchase for the project, if you like. We have budget for it.

I've been playing around with the idea of an Ansible playbook that installs RaspAP based on the Manual Installation steps

Something like this? 😉 https://github.com/RaspAP/raspap-ansible

@jrcichra
Copy link
Collaborator

Great! You're welcome to expense this purchase for the project, if you like. We have budget for it.

Neat! I'll look more into it.

Something like this? 😉 https://github.com/RaspAP/raspap-ansible

I should have done my homework before tinkering. This is great! I'll start here.

@jrcichra jrcichra self-assigned this Apr 21, 2022
@andylinton
Copy link

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.

@Jarusz
Copy link

Jarusz commented Jun 7, 2023

I'd love to hear about any kind of update, docker container would solve so much issues for me.

@kpma1985
Copy link

i created a dockerfile.. tested on nanopi and jetson nano

@cwong-archy
Copy link

any update? getting same error as well.

@DEPSTRCZ
Copy link

Yep, same error.

@NL-TCH
Copy link
Collaborator

NL-TCH commented Jan 9, 2024

fixed in #20 /close

This was referenced Jan 11, 2024
@billz billz closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests