plesk / docker

Dockerfiles for Plesk
Other
95 stars 50 forks source link

plesk/plesk:latest (18.0) does not work as documented #47

Closed neurolabs closed 3 months ago

neurolabs commented 4 months ago

When I follow the documentation to get a test container going, I end up with:

docker run -it --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -p 443:443 -p 8880:8880 -p 8443:8443 -p 8447:8447 plesk/plesk

systemd 245.4-4ubuntu3.23 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 x86-64.

Welcome to Ubuntu 20.04.6 LTS!

Set hostname to <d8abe117f0a4>.
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...
etlam commented 3 months ago

Same here on

@vizovitin @sibprogrammer Can you please have a look on this. This issue seems to be a duplicate of #46.

vizovitin commented 3 months ago

You could try removing :ro from the command line.

Also it's useful to ensure the system and docker are up-to-date.

sibprogrammer commented 3 months ago

Try the following (notice the cgroupns argument and absence of :ro):

docker run -d --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup --cgroupns=host -p 8880:8880 plesk/plesk
etlam commented 3 months ago

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

Works! Thank you!