Migration Guide: Switching from Docker Desktop for Mac to Orbstack
This guide provides step-by-step instructions for migrating from Docker Desktop for Mac to Orbstack.
1. Prerequisites
-
macOS with Homebrew: Ensure Homebrew is installed on your Mac.
-
Basic CLI Skills: Familiarity with terminal commands and environment variables.
2. Installation Steps
a. Install Orbstack
You have two options:
-
Via Homebrew:
Open your terminal and run:
brew install orbstack
-
Direct Download:
Visit orbstack.dev to download the latest version.
b. Configure Your Shell Environment
Set an important environment variable. Add this line to your shell configuration file (e.g., ~/.bashrc or ~/.zshrc):
export SKAFFOLD_PUSH=false
This is crucial because Skaffold doesn’t recognize Orbstack as a local development environment and may attempt to push local images to your remote registry if not configured properly.
c. Terminal Commands Setup
If Orbstack doesn’t automatically adjust your terminal settings, manually run these commands:
-
Switch Docker Context:
docker context use orbstack
-
Switch Kubernetes Context:
kubectl config use-context orbstack
These commands ensure that both Docker and Kubernetes point to Orbstack instead of Docker Desktop.
3. Running Orbstack
a. Launch the Orbstack App
Open the Orbstack application from your Applications folder or via Spotlight.
b. Choose Your Mode
When prompted to select an environment (Docker / Kubernetes / Linux), choose the Docker option for Docker container functionality.
4. Additional Tips & Troubleshooting
-
Double-Check Environment Variables:
Confirm thatSKAFFOLD_PUSHis correctly set to avoid any unexpected behavior with image pushes. -
Resource Allocation:
Ensure your system can handle the allocated resources (48GB RAM and all processors). Adjust based on your workload requirements.