Docker on Mac with OrbStack. Containers, Dockerfiles, images, Compose, BuildKit, volumes, networking. Use when working with Dockerfiles, compose.yaml, docker/docker compose/buildx commands, or containerizing any service.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Docker on Mac with OrbStack. Containers, Dockerfiles, images, Compose, BuildKit, volumes, networking. Use when working with Dockerfiles, compose.yaml, docker/docker compose/buildx commands, or containerizing any service.
Docker
Mac-first via OrbStack. CLI is 100% Docker-compatible — commands here apply to Docker Desktop too unless marked [OrbStack].
Quick start
# Verify
docker version && docker compose version && docker buildx version
# Run
docker run -d -p 8080:80 nginx
docker ps
# Build
docker build -t app:dev .
docker compose up -d --build
Routing
Setup & platform
orbstack-mac.md — OrbStack install, domains (*.orb.local), HTTPS, Rosetta for amd64, contexts, migrating from Docker Desktop
Build context is everything copied to the daemon. Keep it small with .dockerignore.
Order Dockerfile from least to most frequently changing. Deps before source.
One concern per container. Compose for multi-service.
Named volumes for data, bind mounts for code in dev.
On Mac, prefer OrbStack. Faster, less RAM, free Rosetta for amd64 images.
Version pinning
This skill targets: Docker Engine ≥28, Compose ≥2.30, Buildx ≥0.24, BuildKit ≥0.18. compose.yaml (no version: field) is current — legacy docker-compose.yml still works.