dockur / macos

OSX (macOS) inside a Docker container.
MIT License
9.14k stars 333 forks source link

The container configuration is high, but the interface is lagging. Is there any good way to resolve this? #131

Closed burningstyle closed 1 week ago

burningstyle commented 2 weeks ago

Operating system

dockurr/macos

Description

The resources allocated to my container should be sufficient, with 20G of memory and a 16-core CPU. After installing the system, the resource usage looks fine, but there is a lot of latency when accessing the web interface, and it is very laggy

Docker compose

services: macos: image: dockurr/macos container_name: macos environment: VERSION: "15" RAM_SIZE: "20G" CPU_CORES: "16" devices:

Docker log

none

Screenshots (optional)

No response

kroese commented 1 week ago

The web interface is only a temporary solution to see the screen during installation.

As soon as macOS is installed, you can use the "Screen sharing" feature of macOS itself, which should be less laggy.

nizioleque commented 1 week ago

Could you please elaborate how this can be achieved? I enabled "Screen sharing" but I can't get my VNC client to connect to the VM using this feature.

nizioleque commented 1 week ago

I managed to connect to the MacOS built-in VNC server (Screen sharing feature) by adding these parameters to docker compose:

      USER_PORTS: "5900"
      DISPLAY: "disabled"

But the performance seems worse (probably because the VNC server is now inside MacOS, and not in the docker image?), so I wouldn't recommend that. Also, it breaks randomly and needs restarting sometimes.

Instead, just use a desktop VNC client instead of the web interface, and it's fine. Not perfect, but usable.