Oxcart Download
Menu

Container networking on a Mac: ports, VPN, DNS, Little Snitch and TLS

On a Mac, containers run on a Linux side behind the Mac's network, so ports, VPNs, DNS and firewalls depend on how the container app relays traffic. Oxcart opens every outbound connection from the Mac itself, so your VPN, DNS and Little Snitch rules apply to containers, and it offers optional TLS 1.3 encryption between the Mac and the engine.

Updated

How container networking works on a Mac

macOS cannot run Linux containers directly, so every container app on the Mac runs them on a Linux side and relays traffic between it and the Mac. Three paths matter:

  • Inbound: a published port on the Mac forwards to a container.
  • Outbound: a container opens a connection to the internet, your company network, or a service on the Mac.
  • Names: a container looks up a hostname.

When these paths bypass the Mac's own networking, VPN routes don't apply, internal hostnames don't resolve, and a firewall can't see which app is talking. Oxcart is built so that they don't.

Outbound: your VPN, DNS and firewall still apply

Oxcart redirects outbound TCP from containers and build steps, IPv4 and IPv6, to the Mac, which opens the connection with its own sockets. The Mac's routing table decides where it goes, including routes your VPN client installs. Oxcart changes no Mac routes, VPN settings or firewall preferences.

Address lookups (A and AAAA) use the macOS system resolver, including /etc/hosts and the resolver selection your VPN configures, so company hostnames resolve in containers the way they do in your browser. Container names stay scoped to their Docker networks, and DNS works over UDP and TCP.

Little Snitch, LuLu and endpoint agents

A network filter often holds the first connection from a new program for about two seconds while it asks you. Oxcart does not wait on that: connections take a fallback path until the main link is proven, a slow or failed connection moves to the fallback on its own, and three failures in a row take the link down for 30 seconds before it is probed again. Approve Oxcart once in your filter and its rules apply from then on.

Inbound: published ports

Publish ports with the normal Docker syntax:

# Mac loopback only (recommended for development)
docker run -d -p 127.0.0.1:8080:80 nginx

# Ephemeral host port, UDP
docker run -d -p 127.0.0.1::9000/udp my-udp-service

# IPv4 and IPv6 listeners on the Mac
docker run -d -p "[::]:8080:80" nginx

A binding without an address listens on all of the Mac's IPv4 addresses, which makes it reachable from other machines on your network unless the macOS firewall blocks them. TCP and UDP can use the same host port number. Published listeners are released when the container stops.

Published ports also answer on the engine's own localhost, so a registry you run in a container works as a push target:

docker run -d -p 127.0.0.1:5000:5000 --name registry registry:2
docker tag my-app localhost:5000/my-app
docker push localhost:5000/my-app

The Ports view: why a port isn't answering

Oxcart's Ports view lists every listener on your Mac and every container port, grouped by repository, worktree and branch, so two checkouts of the same project don't blur together. Each binding is ready, pending or error, with the reason:

  • the address is already in use on the Mac;
  • the server inside the container listens only on 127.0.0.1;
  • nothing is listening on that port yet.

Ports that other machines can reach carry a marker. Your coding agent sees the same information through Oxcart's MCP ports tool; see Docker for AI coding agents.

Reaching the Mac from a container

host.docker.internal resolves in containers and in build steps, and reaches services bound to the Mac's 127.0.0.1 over TCP. Point a container at a database or a dev server running natively on the Mac:

docker run --rm curlimages/curl http://host.docker.internal:3000/health

Treat this as a deliberate opening: any container you run can reach services on your Mac's loopback this way, so don't leave unauthenticated admin services on 127.0.0.1 while running containers you don't trust.

The encrypted link between the Mac and the engine

Traffic between the Mac and the Linux side crosses a virtual network that macOS shares with other virtualization software on the same Mac. With TLS enabled, Oxcart carries published and outbound TCP on that link inside TLS 1.3 (TLS_AES_128_GCM_SHA256), pinned to a certificate made fresh at every engine start, with a 256-bit bearer token per start. An invalid token closes the connection, and the Linux side closes connections that don't come from the Mac's address before TLS begins.

The threat this addresses: other software on that shared network spoofing addresses to read or inject traffic, or to open new connections to your containers. A guest firewall also keeps that software away from unpublished container ports and the internal resolver. Encryption has a cost on that link, and it is a cost we chose. The Docker API itself never goes over the network: it is a private Unix socket, and with no ports published Oxcart holds no TCP or UDP socket on the Mac.

Current limits

  • Host network mode (--network host) and IPv6 container networking are not implemented; containers have IPv4 addresses.
  • host.docker.internal carries TCP; UDP to the host gateway is not implemented.
  • Published TCP and UDP don't preserve the client's address: the container sees the Linux side as the peer.
  • Non-address DNS records (such as SRV and TXT) use the network's DHCP resolvers rather than macOS split DNS.

Troubleshooting

Container networking problems on a Mac and their fixes
SymptomLikely causeFix
Connection refused on localhost:PORTServer listens on 127.0.0.1 inside the containerListen on 0.0.0.0; the Ports view names this case
"port is already allocated"Another process or container holds the host portPick another host port; the Ports view shows the owner
Internal hostname doesn't resolve in a containerName only exists on your VPN's DNSConnect the VPN on the Mac; address lookups follow the Mac's resolver
Container can't reach a dev server on the MacUsing localhost inside the containerUse host.docker.internal
First pull stalls for a couple of secondsA network filter is asking about a new connectionApprove Oxcart once; connections use the fallback meanwhile
Teammates can reach your dev portPublished without an addressPublish to 127.0.0.1

Questions

Do Docker containers on a Mac use my VPN?

In Oxcart, yes. Outbound connections from containers are opened by the Mac itself, so the Mac's routes, VPN, split DNS for address lookups and per-app firewall apply to them. Oxcart changes no Mac routes, VPN settings or firewall preferences.

How do I reach a service on my Mac from a container?

Use host.docker.internal. In Oxcart it reaches services bound to the Mac's 127.0.0.1 over TCP, from containers and from build steps. --add-host mac:host-gateway gives you another name for the same address.

Why can I see the container running but not reach its port?

Usually the server inside the container listens on 127.0.0.1, which published ports cannot reach; make it listen on 0.0.0.0. The other causes are a host port already in use or nothing listening yet. Oxcart's Ports view shows which one it is.

Does Oxcart work with Little Snitch and LuLu?

Yes. When a network filter holds Oxcart's first connection while it asks you, connections take a fallback path until the link is proven, so nothing breaks or waits on your answer. A slow or failed connection moves to the fallback on its own.

Is container traffic encrypted on my Mac?

With optional TLS enabled, published and outbound TCP between the Mac and Oxcart's engine travels inside TLS 1.3, pinned to a certificate made at every engine start, with a 256-bit token per start. It protects that link from other virtualization software on your Mac's shared network. Traffic to the internet is protected by whatever the app itself uses, such as HTTPS.

Are my published ports visible to other machines on my network?

A port published without an address listens on all of the Mac's IPv4 addresses, so other machines can reach it unless the macOS firewall blocks them. Publish to 127.0.0.1 to keep it on your Mac. Oxcart marks ports that other machines can reach.

Does Oxcart support host networking or IPv6 for containers?

No. Host network mode and IPv6 container networking are not implemented. Containers have IPv4 addresses; ports can still be published on IPv6 with "[::]:8080:80".

Sources and method

Networking behavior described here was tested on Oxcart on October 10, 2026, including outbound TCP, DNS, published ports, host access and TLS on the Mac-to-container link.

Try Oxcart on your own projects

Free for 60 days. Then one license, every update for life: not a subscription.

Mac with Apple silicon · Windows 11 (x64)

Read next

Release notes

Oxcart 26.11.6

Latest release

Containers see the changes you make to files on your Mac as they happen.

  • Edit a file in a shared folder on your Mac, and tools that watch it in a container, such as Vite, webpack and nodemon, reload right away. Polling is not needed.
  • When no containers are running and you haven't used Docker for two minutes, Oxcart gives the memory it was using back to macOS. The next docker command starts it again in under a second. This doesn't happen while Kubernetes is turned on.
  • You can bring your images, volumes and networks over from another Docker app. Choose Import from Another Runtime… in the More (…) menu on the Containers page, or run oxcart import. Containers themselves aren't copied: start them again with docker compose up -d or docker run, and they use the imported volumes and networks.
  • Bug fixes and optimizations.
  • Updated Linux and system components, with the latest security fixes. A Windows virtual machine that is suspended when you update starts fresh afterwards.

Requires macOS 26.0 or later

Oxcart 26.11.5

You can now turn on GPU acceleration for a Windows 11 virtual machine you already have.

  • Open the virtual machine's settings and turn on GPU acceleration under Display. Oxcart restarts Windows once, and the Windows desktop and Direct3D 10 and 11 apps then render on your Mac's GPU.
  • Turning GPU acceleration off puts back the standard display driver, and suspending works again.

Requires macOS 26.0 or later

Oxcart 26.11.4

Bug fixes and optimizations.

  • Virtual machines start again after updating Oxcart while it is open.

Requires macOS 26.0 or later

Oxcart 26.11.3

Windows virtual machines can now use your Mac's GPU.

  • Turn on GPU acceleration when you create a Windows 11 virtual machine, on the first step of New Virtual Machine. The Windows desktop and Direct3D 10 and 11 apps then render on your Mac's GPU instead of its processor.
  • A virtual machine with GPU acceleration can't be suspended or snapshotted while it runs. Shut it down instead. Existing virtual machines are not changed.
  • GPU acceleration is new. After a lot of opening and closing windows, the Windows screen can go black for about a second while Oxcart frees graphics memory.
  • Updated Linux and system components, with the latest security fixes.

Requires macOS 26.0 or later

Oxcart 26.11.2

Oxcart can now run Kubernetes for you.

  • Turn on Kubernetes in Settings › Resources to get a local single-node cluster that kubectl can use right away.
  • Services in the cluster are reachable from your Mac at 127.0.0.1, and images you build with Docker run in the cluster without pushing them to a registry.
  • Updated Linux and system components, with the latest security fixes.

Requires macOS 26.0 or later

Oxcart 26.11.1

Bug fixes and optimizations.

  • A simpler toolbar in the VM window.
  • Updated Linux and system components, with the latest security fixes.

Requires macOS 26.0 or later

Oxcart 26.11.0

Clearer Windows audio, a network that comes back, and a VM toolbar that stays out of your way.

  • Clear Windows audio. Choppy, garbled sound in Windows VMs is fixed.
  • Networking that recovers. Turn a Windows VM's network off and on again, and it reconnects without a restart.
  • A toolbar that stays out of the way. It no longer covers the top of your VM. Move the pointer to the top center and click the small tab when you want it.
  • Simpler Oxcart Tools for Windows. One CD now holds everything, and the installer handles the drivers and any restart for you.
  • A more dependable clipboard in Windows VMs.
  • A license agreement to accept the first time you open Oxcart on your Mac.
  • Updated Linux, container and Docker components, with the latest security fixes.

Requires macOS 26.0 or later

Oxcart 26.10.0

Virtual machines are here. Windows 11, Linux and macOS run on your Mac, built into Oxcart beside your containers and covered by the license you already have.

  • Windows 11 in about 5 minutes, hands off. Choose your Windows 11 ARM installer and walk away: Oxcart installs Windows, its drivers and Oxcart Tools by itself, on a VM with real TPM 2.0 and Secure Boot. You bring the installer and the license.
  • Linux in under a minute. Ubuntu, Debian and Fedora start with your Mac username, your SSH key and passwordless sudo already set up; Fedora is ready in about 30 seconds. Every further VM from the same image starts from an instant copy that takes only the space it changes. Ubuntu Desktop, Fedora Workstation and any arm64 Linux installer work too.
  • macOS on macOS. Oxcart restores the newest macOS your Mac supports and, with Automatic setup, creates your account and installs Oxcart Tools.
  • Every VM is a real Mac app. Each one has its own window, Dock icon and ⌘-Tab entry, and keeps running after you quit Oxcart. The Retina display follows the window as you resize it or go full screen, ⌘C and ⌘V work in Linux and Windows, and text, images and files move between your Mac and the guest by copy, paste and drag.
  • Snapshots that capture the moment. Snapshot a running VM with its open apps and return to that exact moment later. Snapshots and clones take almost no space until the guest changes, and a restore lands whole even if your Mac loses power halfway.
  • Your Mac's folders, network and USB. Share Mac folders with any guest, reach your Mac by name and publish ports from the VM. Hand a USB device to Windows for flashers, programmers and dongles; development boards' serial ports show up in Windows under their own IDs.
  • First-class for coding agents. VMs join containers in Oxcart's MCP server with 22 tools of their own, so an agent you connect can create, start, snapshot and clone VMs, run commands and copy files in the guest, forward ports, connect USB devices and disk images, and read the screen and type in any guest, even one without Oxcart Tools, all within the permission level you set for each agent. The oxcart vm command covers every operation, with JSON output for scripts and CI.
  • Encrypted VMs, when you want them. Keep a VM's disks and secrets behind a password of your own, with AES-256 encryption built into Oxcart, so an encrypted disk flushes as fast as a plain one.
  • Disk space you can see. Choose where a VM lives, on your Mac or an external drive, and see what it takes now and what it can grow to against the space you have. Reclaim Space hands back what a guest frees right away, and Disk Usage shows each downloaded system so you can remove the ones you no longer need.
  • VMs that move with you. Each VM is a single item in Finder you can keep on any drive. Export it as one .oxvm file to another Mac, and bring over Linux and macOS VMs from another Mac virtualization app.
  • Ready when you are. Chosen VMs start when you log in, run headless with no window at all, and suspend when you close them, so you pick up exactly where you left off.
  • Oxcart Help. Help › Oxcart Help (⌘?) explains every setting, what it does and what changing it affects, with a ? beside each one. Coding agents read the same help through MCP.
  • More reliable published ports. A container connection that a service closes mid-transfer now ends cleanly instead of waiting.
  • New version numbers. Releases are now numbered by year and month, so this one is 26.10.0.

Requires macOS 26.0 or later

Oxcart 0.1.8

Oxcart for Windows, and every update included for life.

  • Oxcart runs on Windows too. One license covers up to 5 devices, Mac or Windows, in any mix.
  • Every update is included, for life.
  • Oxcart is $5 through December 31, 2026.
  • Coding agents can inspect containers, read live stats and resource pressure, follow logs, track long pulls and builds, and run containers with the limits you set.
  • Recreating a container keeps its volumes and network aliases.
  • Oxcart's helper shows as Oxcart in Login Items.
  • Reliability improvements throughout.

Requires macOS 26.0 or later

Oxcart 0.1.7

Faster shared folders, faster networking, and container environments you can edit.

  • Much faster shared folders. Cloning repositories, installing packages and building in a shared folder are up to 3× faster.
  • Faster networking. Published ports and container connections move nearly twice as much data, using less CPU.
  • Encryption when you want it. Encrypting traffic between your Mac and your containers is optional: turn it on in Settings › Resources › Encrypt container connections.
  • Environment variables, easy to see and change. See a container's variables on its Overview, change them with Edit and Recreate, and paste a whole .env file at once.
  • A smoother Run Container sheet. Return moves to the next row instead of starting the container.
  • Clearer troubleshooting. Oxcart tells you when a VPN or firewall is slowing your connections.
  • More reliable shared folders, with correct permission errors and up-to-date contents after changes on your Mac.

Requires macOS 26.0 or later

Oxcart 0.1.6

Coding agents can fix what they find, plus fixes and hardening throughout.

  • New agents can start, stop and restart containers, run commands in them and bring Compose projects up, using images already on your Mac. Pulling, building and deleting require Full, set for each agent in the MCP Integrations section.
  • Setup gives every agent a ready-to-use entry, and oxcart mcp check confirms it works.
  • Sharper answers: agents see when a service is down because something it depends on is, whether a web page actually loads, and what caused a failure and how to fix it.
  • Start at login opens Oxcart in the menu bar, ready when you need it.
  • Oxcart checks for updates as it starts, and sends a short check-in to oxcart.cc. Settings › Privacy shows exactly what it contains.
  • Containers find the other services on their networks from the moment they start.
  • Fixes to privileged containers, Rosetta checks and setup safeguards.
  • The Oxcart app asks before anything that deletes data or stops running work.
  • Security hardening and reliability improvements throughout.

Requires macOS 26.0 or later

Oxcart 0.1.5

Oxcart runs local Kubernetes and privileged containers, and speaks ten languages.

  • Settings › Resources › Kubernetes and networking: turn on privileged containers to run kind, k3d, minikube (Docker driver) and Docker-in-Docker, and to use docker run --privileged and --device. It is off by default. Oxcart's guard keeps every container away from its disks, its kernel, other containers' data and its channels to your Mac.
  • IPv6 container networks, also off by default, for networks created with IPv6 such as kind's dual-stack network.
  • Oxcart is translated into Simplified Chinese, Japanese, German, French, Spanish, Brazilian Portuguese, Korean, Russian and Turkish. Settings › General › Language sets it for Oxcart only.

Requires macOS 26.0 or later

Oxcart 0.1.4

Licensing and refinements.

  • Secure email-link license activation.
  • License and Mac management from Settings.
  • Offline license verification.
  • Performance improvements, UI polish, and bug fixes.

Requires macOS 26.0 or later

Oxcart 0.1.3

Idle memory reclamation.

  • Reclaims VM memory when no containers are running.
  • Preserves containers, images, volumes, and networks.

Requires macOS 26.0 or later

Oxcart 0.1.2

Command-line tool integration.

  • Switch between Oxcart's bundled Docker tools and an existing installation.
  • UI polish.

Requires macOS 26.0 or later

Oxcart 0.1.1

Bundled Docker tools and agent controls.

  • Docker CLI 29.9, Compose 5.6, and Buildx 0.38 included.
  • Docker context integration and secure Keychain credentials.
  • MCP agent connections with per-agent permissions and blocking.

Requires macOS 26.0 or later

Oxcart 0.1.0

Docker-compatible containers for Apple silicon.

  • Docker CLI, Compose, and Buildx compatibility.
  • Offline setup with bundled runtime components.
  • Ports organized by project and Git branch.
  • MCP integration with read-only access by default.
  • Verified automatic updates.

Requires macOS 26.0 or later