fcwu / docker-ubuntu-vnc-desktop

A Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.
Apache License 2.0
3.91k stars 1.42k forks source link

Cannot use option `--network host` when running a docker container #292

Open JinraeKim opened 1 year ago

JinraeKim commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

When I used the command of docker run --rm --network host -p 6080:80 /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc:focal-arm64, the following error occurred and cannot access it through web browser as

➜  visualisation_docker git:(feature/stair_pipeline_docker) ✗ docker run --rm --network host -p 6080:80 -v /dev/shm:/dev/shm ihany/visualisation
WARNING: Published ports are discarded when using host network mode
2022-10-05 04:49:47,330 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.

Notes My machine is M1 MBA.