OrbStack not detected (race condition)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, go, kubernetes
- Domain
- devops, infrastructure
Research direction
Start with internal/docker/env.go around line 71 and compare its environment detection with the Kubernetes readiness observed by the reproduction script. Run the OrbStack startup sequence followed by tilt doctor and tilt up, focusing on the reported container runtime and push decision. Done means Tilt reliably detects a newly started OrbStack environment and does not push images to Docker Hub.
Written by the indexing model from the issue text.
Description
Expected Behavior
Tilt should detect that OrbStack is running locally and not try to push images to Docker Hub.
STEP 2/3 — Pushing my-image:tilt-b40c5c3a04bf57c3
Skipping push: building on cluster's container runtime
Current Behavior
Tilt tries to push images to Docker Hub (when OrbStack was just started).
STEP 2/3 — Pushing my-image:tilt-b40c5c3a04bf57c3
Pushing with Docker client
Authenticating to image repo: docker.io
Sending image data
Build Failed: docker push: pushing image "docker.io/my-image": denied: requested access to the resource is denied
Steps to Reproduce
- Install OrbStack
- Run the following script:
orb start k8s
kubectl config use-context orbstack
while ! kubectl get node &> /dev/null; do
echo "Waiting for Kubernetes to be ready"
sleep 1
done
tilt doctor
tilt up
- Notice that Tilt tries to push docker images to Docker Hub (only when not cached and OrbStack was just started)
Context
tilt doctor Output (before running tilt up when it tries to push)
Tilt: v0.33.22, built 2025-01-03
System: darwin-arm64
---
Docker
- Host: unix:///Users/me/.orbstack/run/docker.sock
- Server Version: 27.5.1
- API Version: 1.47
- Builder: 2
- Compose Version: v2.32.4
---
Kubernetes
- Env: orbstack
- Context: orbstack
- Cluster Name: orbstack
- Namespace: default
- Container Runtime: read-failure
- Version: v1.30.7+orb1
- Cluster Local Registry: none
---
...
About Your Use Case
We're trying to automate the cluster setup, but when starting OrbStack followed by Tilt there is a race-condition in detecting the environment. Refreshing a resource does not resolve the issue. Restarting Tilt resolves the issue until the next full restart (including OrbStack). I would be happy if someone could tell me for which condition I need to wait in the script before running tilt up. From the tilt doctor output I can see that Tilt already knows that it is working with an OrbStack cluster, but the "push policy" relies on something else.
Maybe it is related to this: https://github.com/tilt-dev/tilt/blob/master/internal/docker/env.go#L71
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tilt-dev/tilt
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Tilt at scale Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100