Closed accetto closed 6 months ago
Unfortunately I have to confirm this problem with the G3 containers and the Container Station on QNAP NAS devices.
I don't want to speculate about the reason until I do more testing.
As a way around you can use my older G2 or G1 images. They do work also on QNAP NAS devices.
This is the simple Container Station application I've used for testing:
### app name: app-qnap-test
version: "3"
services:
firefox-g3:
image: accetto/ubuntu-vnc-xfce-firefox-g3:latest
ports:
- "35940:5901"
- "35941:6901"
firefox-g2:
image: accetto/xubuntu-vnc-novnc-firefox:latest
ports:
- "35942:5901"
- "35943:6901"
firefox-g1:
image: accetto/ubuntu-vnc-xfce-firefox-plus:latest
ports:
- "35944:5901"
- "35945:6901"
You can connect to the containers using your web browser like this:
http://<your-nas-ip>:35941
http://<your-nas-ip>:35943
http://<your-nas-ip>:35945
The first container will show only a black-screen, but the other two should work.
FYI: Test 1 Increasing shared memory like this didn't help.
version: "3"
services:
firefox-g3:
image: accetto/ubuntu-vnc-xfce-firefox-g3:latest
ports:
- "35940:5901"
- "35941:6901"
shm_size: "256m"
FYI: Test 2 Making the container privileged did help, so it seems to be related to the permissions on QNAP.
The following G3 container should work:
version: "3"
services:
firefox-g3:
image: accetto/ubuntu-vnc-xfce-firefox-g3:latest
ports:
- "35940:5901"
- "35941:6901"
shm_size: "256m"
privileged: true
FYI: Test 3 Pre-creating the network manually didn't help.
The following G3 container will not work:
version: "3"
networks:
my_test:
external: true
name: my_test
services:
firefox-g3:
image: accetto/ubuntu-vnc-xfce-firefox-g3:latest
ports:
- "35940:5901"
- "35941:6901"
networks:
- my_test
Sorry for mingling (I'm less than beginner) but I solved this by recreating the container and make it run in "privileged mode". This way no dark screen.
Not at all, you're welcome. :) Yes, the priveleged mode helps (see the 'Test 2' above). Also the G1 and G2 images work. I hope to spare some time to come to this problem.
I can confirm the black screen on my normal ubuntu cloud server (not a qnap)
22.04 --> black screen 20.04 --> works
docker run -d \
--restart=always \
--name testvnc \
--network=nginx-proxy \
-e VNC_PW=!mypassword! \
accetto/ubuntu-vnc-xfce-firefox-g3:22.04 --verbose
Hello @KlausGlueckert ,
thank you for your feedback. Which cloud service do you use?
I assume, that the startup script is not allowed to change the permissions of the system files /etc/passwd
and /etc/passwd /etc/group
on the first start. Cloud environments often restrict such activities.
However, it could be also some other reason. I'm thinking about re-designing the startup sequence sometimes in the future.
Have you checked also the older issues? Maybe you could find a hint.
Regards, accetto
Discussed in https://github.com/accetto/ubuntu-vnc-xfce-g3/discussions/55