Meta tags:
description= Enable containers to share the Mac s network stack with host networking using --net host, giving full access to all localhost ports without manual port forwarding. Easily run servers in containers or access Mac services from containers on localhost.;
Headings (most frequently used words):
containers, host, networking, get, started, learn, more, features, docker, kubernetes, linux, machines, compare, legal, local, ports, usage, multiple,
Text of the page (most frequently used words):
host (17), networking (10), the (9), docker (7), #network (6), containers (6), port (6), using (5), localhost (4), run (4), container (4), orbstack (4), kubernetes (3), page (3), ports (3), net (3), from (3), forwards (3), for (3), this (3), machines (3), linux (3), volumes (2), mounts (2), namespace (2), and (2), other (2), between (2), that (2), use (2), with (2), command (2), you (2), also (2), instead (2), get (2), entire (2), range (2), domains (2), need (2), any (2), servers (2), will (2), accessible (2), mac (2), security (2), policy (2), menu (2), features (2), install (2), navigation (2), docs (2), 2024, orbital, labs, llc, next, previous, pager, since, shares, addresses, resources, are, shared, all, multiple, nginx, bash, simply, add, your, usage, should, consider, while, having, nice, domain, name, work, avoiding, conflicts, different, whereas, set, each, individual, makes, 65535, available, useful, services, generate, dynamically, reverse, true, running, removes, configure, internal, local, allows, inherit, being, independent, bridge, unlike, providers, macos, supports, out, box, open, source, licenses, subprocessors, privacy, public, sector, amendment, master, software, license, agreement, terms, service, legal, utm, colima, desktop, compare, distributions, ssh, file, sharing, commands, cloud, init, isolated, images, line, bar, app, sound, usb, image, volume, files, https, debug, shell, older, versions, bulletins, licensing, settings, architecture, benchmarks, efficiency, learn, more, what, new, frequently, asked, questions, quick, start, home, started, sidebar, return, top, appearance, demo, overview, main, search, skip, content,
Text of the page (random words):
host networking orbstack docs skip to content orbstack docs search k main navigation overview docker linux install demo appearance menu return to top sidebar navigation get started home features quick start frequently asked questions what s new learn more install efficiency benchmarks architecture settings licensing security bulletins older versions features debug shell domains https container image volume files usb sound menu bar app command line ci docker containers using containers network images volumes mounts host networking kubernetes using kubernetes linux machines using linux machines isolated machines cloud init commands network file sharing ssh distributions compare docker desktop colima utm legal terms of service master software license agreement u s public sector amendment privacy policy subprocessors security policy open source licenses on this page host networking host networking or net host allows containers to inherit the host s network namespace instead of being an independent host on a bridge network unlike other docker providers for macos orbstack supports host networking out of the box local ports any servers you run in the container will be accessible from mac on localhost the reverse is also true any servers running on mac will be accessible from the container on localhost this removes the need to use host docker internal or configure port forwards host networking is different from port forwards whereas port forwards need to be set up for each individual port host networking makes the entire port range 1 65535 available this is useful for services that generate ports dynamically you should also consider using orbstack domains instead of localhost to get the entire port range while having a nice domain name to work with and avoiding conflicts between containers usage to run a container with host networking simply add net host to your docker run command bash docker run rm net host nginx multiple containers since host networking shares the host s network namespace localhost ports ip addresses and other network resources are shared between all containers that use host networking pager previous page volumes mounts next page using kubernetes 2024 orbital labs llc
|