sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.13k stars 1.78k forks source link

vnc port / user password ? #135

Open matti opened 3 years ago

matti commented 3 years ago

VNC on localhost:8888 vnc version is inside a separate directory

But atleast with this the port is 5900

docker run -it \
    --device /dev/kvm \
    -p 5900:5900 sickcodes/docker-osx:auto

What's the user password?

sickcodes commented 3 years ago

Build the VNC image as per the README, then use the new runtime volume argument:

wget https://images2.sick.codes/mac_hdd_ng_auto.img.zst

zstd -k mac_hdd_ng_auto.img.zst

Then add this: ~~bash docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "$PWD/mac_hdd_ng_auto.img":/image \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:naked~~

sickcodes commented 3 years ago

Build the VNC image as per the README, then use the new runtime volume argument:

wget https://images2.sick.codes/mac_hdd_ng_auto.img.zst

zstd -k mac_hdd_ng_auto.img.zst

Then add this:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "$PWD/mac_hdd_ng_auto.img":/image \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:naked

I removed the runtime argument volume from VNC version.

But you can still use:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "$PWD/mac_hdd_ng_auto.img":/image \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e BOOTDISK=/image \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:naked