How to use VNC after setting up container? #534

Closed
opened 2025-12-29 01:21:06 +01:00 by adam · 3 comments
Owner

Originally created by @EndCod3r on GitHub (Sep 22, 2023).

I can't figure out how to use VNC with an already setup container.

I already setup the container and reinstalling macOS on it and change some settings on macOS but now I want to use VNC but I can't figure out how to.

Originally created by @EndCod3r on GitHub (Sep 22, 2023). I can't figure out how to use VNC with an already setup container. I already setup the container and reinstalling macOS on it and change some settings on macOS but now I want to use VNC but I can't figure out how to.
adam closed this issue 2025-12-29 01:21:06 +01:00
Author
Owner

@hendkai commented on GitHub (Sep 23, 2023):

For example i start this:
docker run -i --device /dev/kvm -p 50922:10022 -p 5999:5999 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" sickcodes/docker-osx:big-sur
Then i have wait until its bootet. At some point it seems to stop. Hit enter then. Then u see (qemu) in the terminal. Insert change vnc password and you will be asked for the vnc password. Then use tightvnc or guacamole vnc or whatever vnc client u want and connect to the macOSx. Be carefull this is not the encrypted version.

@hendkai commented on GitHub (Sep 23, 2023): For example i start this: `docker run -i --device /dev/kvm -p 50922:10022 -p 5999:5999 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" sickcodes/docker-osx:big-sur` Then i have wait until its bootet. At some point it seems to stop. Hit enter then. Then u see (qemu) in the terminal. Insert `change vnc password` and you will be asked for the vnc password. Then use tightvnc or guacamole vnc or whatever vnc client u want and connect to the macOSx. Be carefull this is not the encrypted version.
Author
Owner

@EndCod3r commented on GitHub (Sep 23, 2023):

@hendkai, I'm already made the Docker container using
docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /mnt/wslg/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey

If I run the command you gave me it makes a new Docker container. I want to know how to use VNC on an already created container.

@EndCod3r commented on GitHub (Sep 23, 2023): @hendkai, I'm already made the Docker container using ``docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /mnt/wslg/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey`` If I run the command you gave me it makes a new Docker container. I want to know how to use VNC on an already created container.
Author
Owner

@hendkai commented on GitHub (Sep 23, 2023):

Then you need your docker container id. If u have it, start that containter with docker start -ai yourdockercontainerid.
What i did i started the container and listed the id with docker container ls if dont know it.

@hendkai commented on GitHub (Sep 23, 2023): Then you need your docker container id. If u have it, start that containter with `docker start -ai yourdockercontainerid`. What i did i started the container and listed the id with `docker container ls` if dont know it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#534