orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.48k stars 31 forks source link

Linux machine connect to container run at host #1144

Closed brianw0924 closed 1 month ago

brianw0924 commented 1 month ago

Hi, I want to run docker-compose up at host (Mac), but how can i connect to the container inside the linux machine?

kdrag0n commented 1 month ago

Domains and IPs also work in machines. https://docs.orbstack.dev/docker/network

brianw0924 commented 1 month ago

Domains and IPs also work in machines. https://docs.orbstack.dev/docker/network

Is there anyway to name the container with docker run --name

I can only use docker-compose to name my container

kdrag0n commented 1 month ago

Please read the docs. Container names are used for domains.