mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
using docker-compose #575
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vespino on GitHub (Mar 10, 2024).
The following command creates a container that I can use via VNC:
docker run -i --device /dev/kvm --name=docker-osx -p 50922:10022 -p 5999:5999 -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_SPECIFIC=true -e DEVICE_MODEL="iMacPro1,1" -e SERIAL="C02YR6YYHX87" -e BOARD_SERIAL="C027251024NJG72UE" -e UUID="5CCB366D-9118-4C91-A00E-E5BEF3BED451" -e MAC_ADDRESS="E8:5C:2C:9F:46:2E" -e EXTRA="-display none -vnc 0.0.0.0:99,password=off" sickcodes/docker-osx:venturaUsing composerize.com I have converted this to a docker-compose.yml file:
When running docker-compose up however it stops with the following output:
When removing the double quotes from EXTRA="-display none -vnc 0.0.0.0:199,password=off" container creation stops at:
At this point I can’t use it using VNC.
Any thoughts?
@alexjfinch commented on GitHub (Apr 8, 2024):
This might not be the issue but I can see your docker-compose file has port 199 instead of 99 for VNC - its the only differences I can see between the two.
Otherwise I'd remove it and then try - VNC_NO_PASSWORD: 1 as another environment variable.
What distribution are you using and are you using X11 or Wayland?
@vespino commented on GitHub (Apr 9, 2024):
Where it went wrong for me, was the changes in ports I tried to make in an attempt of running a second container next to a running one. I removed the first container (the one created with the docker command), made changes to the docker compose file, and it then runs fine. I'm now setting up MacOS via VNC.