-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network bridge to my physical network #56
Comments
You can use these steps: https://github.com/dockur/windows#how-can-windows-acquire-an-ip-address-from-my-router They are for the Windows container, but also apply to this macOS container. |
Is there a way to bridge if the host machine is Windows? When I followed the steps above, docker gave an error that macvlan is not supported on Windows. |
@nref No, macvlan is not supported on Windows. But depending on what you are trying to accomplish there might be other ways? |
Thanks for your response, and that was a thoughtful way of asking "why?" I'd like...
|
For both of those things you do not need macvlan at all. To use a different VNC app you can just connect to port 5900 (vnc) instead of 8600 (web). To reach Windows shares on your network you can reach them by IP ( |
Thanks again. For VNC, what IP do I enter in my VNC client? For SMB, the guest cannot see my server (which is also the docker host), and can't ping it. The IP of macOS is 20.20.20.21, netmask 0xffffff00. My docker-compose.yml file: services:
macos:
image: dockurr/macos
container_name: macos
environment:
VERSION: "14"
RAM_SIZE: "16G"
CPU_CORES: "16"
DISK_SIZE: "512G"
devices:
- /dev/kvm
volumes:
- F:/macos14/storage:/storage
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 5900:5900/tcp
- 5900:5900/udp
stop_grace_period: 2m |
I was able to answer my own questions:
From the host, enter To reduce confusion, stop any VNC server on the host. This cost me some time as I thought I was dealing with docker issues: I had TightVNC running on my Windows host, and the TightVNC client would hit that and throw the error "Sorry, loopback connections are not allowed". RealVNC does better: it will hit the local server only if the guest macOS container is not running and only otherwise throw the same loopback error.
From the guest, use |
I pursued an answer to the natural follow-up question: "How do I access services on the guest macOS container, hosted on Windows, from outside the host machine?" Old (Incorrect) AnswerSince docker does not support bridged networking on Windows, an alternative is
then
New AnswerNo action is needed. Docker takes care of opening firewall ports and exposing ports outside the host. |
Operating system
Ubuntu 24.04
Description
I have 20.20.20.0/24 network inside MacOS but I need 192.168.1.0/24
How to do it? I tried to add some configs to compose file but it changed only the IP address for VNC, so now I connect to 192.168.1.230:8006 instead of localhost:8006. The address of MacOS itself remains the same
Docker compose
Docker log
Screenshots (optional)
If I set the parameters manually, I lose my connection, I cannot ping google.com, for example
The text was updated successfully, but these errors were encountered: