Skip to content

Commit f7b5622

Browse files
committed
Pull docker tunnel from GHCR instead of Docker Hub
They're tightening rate limits, and strongly implying it'll cause problems. It's a tiny image with a one-off pull, but pulling from our GHCR repo (seemingly no rate limit, for now) makes a lot more sense.
1 parent 9f08df8 commit f7b5622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interceptors/docker/docker-tunnel-proxy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { isDockerAvailable } from './docker-interception-services';
88
import { logError } from '../../error-tracking';
99
import { waitForDockerStream } from './docker-utils';
1010

11-
const DOCKER_TUNNEL_IMAGE = "httptoolkit/docker-socks-tunnel:v1.2.0";
11+
const DOCKER_TUNNEL_IMAGE = "ghcr.io/httptoolkit/docker-socks-tunnel:v1.2.0";
1212
const DOCKER_TUNNEL_LABEL = "tech.httptoolkit.docker.tunnel";
1313

1414
const getDockerTunnelContainerName = (proxyPort: number) =>

test/integration/interceptors/docker-terminal-interception.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Successfully built <hash>
380380

381381
// Tunnel is now running:
382382
tunnel = await docker.getContainer(`httptoolkit-docker-tunnel-${server.port}`).inspect();
383-
expect(tunnel.Config.Image.split(':')[0]).to.equal('httptoolkit/docker-socks-tunnel');
383+
expect(tunnel.Config.Image.split(':')[0]).to.equal('ghcr.io/httptoolkit/docker-socks-tunnel');
384384

385385
// Then shut everything down:
386386
await stopDockerInterceptionServices(server.port, ruleParams);

0 commit comments

Comments
 (0)