docker-ubuntu-vnc-desktop icon indicating copy to clipboard operation
docker-ubuntu-vnc-desktop copied to clipboard

start a container using host network requiring password

Open CrazyChildren opened this issue 5 years ago • 2 comments

Describe the bug i used your repository to keep my project testing environment consistent, it's really useful. while my project need to communicate a device whose ip addr was 192.168.102.1(LAN IP ADDR with host), and i don't want to add a router to my host machine that as NAT, so i choose to use a host net to start the container. while when using host net, vnc always required a password to connect(even if i don't set a password via "-e VNC_PASSWORD"), i've tried "-e VNC_PASSWORD=mypassword" or "-e PASSWORD=mypassword", but all of these doesn't work. the vnc login page prompt" connection refused". may i ask if there is a default password to connect using host net?

To Reproduce Steps to reproduce the behavior:

  1. docker run --name ubuntu --privileged --net=host -e VNC_PASSWORD=mypassword -v /temp/souce:/temp/des crazychildren/ubuntu:cortex-env (this is my repo which was large, don't encourage to pull my repository,it was base on bionic-lxqt: Ubuntu 18.04 LXQt)
  2. open a browser, link to localhost;

Expected behavior use as -p 6080:80 that if you don't set a password, you can connect to container directly. or when you set vnc password, it could be use.

Screenshots image

Versions (please complete the following information):

  • OS: [e.g. Ubuntu 18.04]
  • image tag: bionic-lxqt: Ubuntu 18.04 LXQt

CrazyChildren avatar Aug 06 '20 03:08 CrazyChildren

same issue, i want to create a container with "--net=host", but when connecting using a browser, "http://127.0.0.1" or "http://127.0.0.1:80", it shows noVNC

kevin0525 avatar Oct 23 '20 03:10 kevin0525

Hi @CrazyChildren , @kevin0525

I know this has been inactive for a while but I'm facing a similar issue with a docker-ubuntu-desktop image running vnc and would love to know if you managed to make it work?

Thanks in advance!

ItsJas avatar Jun 02 '22 01:06 ItsJas