Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build Action can't push to Tailscale-based registry #108

Open
jamie-at-arkifi opened this issue Jan 31, 2024 · 1 comment
Open

Docker Build Action can't push to Tailscale-based registry #108

jamie-at-arkifi opened this issue Jan 31, 2024 · 1 comment

Comments

@jamie-at-arkifi
Copy link

jamie-at-arkifi commented Jan 31, 2024

I strung together a github actions job with the steps:

  1. tailscale/github-action
  2. docker/setup-qemu-action
  3. sigstore/cosign-install
  4. docker/setup-buildx-action
  5. actions/checkout
  6. docker/metadata-action
  7. docker/build-push-action

(2-7 are pretty much default multi-platform image build pipeline github gives you.)

On my tailnet, I'm running the registry:2 container.

The problem is that when build-push-action goes to push, it can't connect:

ERROR: failed to solve: failed to push registry.redacted.ts.net/repo:tag: failed to do request: Head "https://registry.redacted.ts.net/v2/repo/blobs/sha256:9b215f6cf4b06c007e35fcc4c41c620c3728d5135472a1dd6390bb0d1dccbcd5": dial tcp: lookup registry.redacted.ts.net on 168.63.129.16:53: no such host

Adding some debug steps, I've determined:

  • tailscale status runs and shows a bunch of machines
  • curl -iL http://registry.redacted.ts.net/v2/_catalog shows a blob of JSON from the registry
  • docker pull can pull from that registry

I'm not sure if I need to set buildx to use host networking (similar to #101 (comment)) or if I should set up proxy settings, or if Docker in GitHub Actions is just Weird:tm:.

@henworth
Copy link

I found a solution that worked in my case, maybe it will work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants