Guides

Ports and folders

Decide what a machine can reach, open the ports you mean to, and share a folder from your Mac. By default each egg gets a private NAT gateway: outbound works, nothing inbound unless you forward it. Eggs are isolated from *each other* too.

[network]
mode = "gateway"       # default
# mode = "none"        # a machine with no network at all
# name = "backend"     # join a named network (egg network create backend)
NETWORK isolated       # Eggfile: isolated | restricted | open
egg run web -p 8080:80 -p 2222:22       # host:guest forwards, on purpose
egg network create backend               # a named subnet a group of eggs can share
egg network ls

mode = "none" / NETWORK isolated is the one to reach for when you open a file you don't trust: the machine simply has no way to phone home. Eggs with the same [network] name see each other on that subnet.

Shared folders

egg run dev -v ~/code:/work

Host directories mount into the guest over virtio-fs. The guest sees live host files — no syncing, no copying.

Next: GPU