Slow GitHub clones and Docker image pulls are often blamed on a single network problem, but several separate paths are involved. Git may use HTTPS or SSH; Git LFS can fetch large files separately; Docker downloads images through its daemon; and npm, pip, and CI jobs may each use their own proxy or registry settings. A useful setup starts by identifying which connection is slow, then applies the narrowest change that addresses it. Routing every application through a VPN can add complexity without fixing a proxy that the relevant tool never uses.

Map the traffic before changing settings

First, identify the operation that is failing and the component that performs it. A browser opening GitHub successfully does not prove that a command-line Git client can reach the same host: the browser and Git may use different proxy settings, DNS behavior, or authentication. Likewise, a successful terminal request to Docker Hub does not prove that the Docker daemon uses the terminal’s proxy. Separating these paths prevents broad changes that obscure the original issue.

For Git, note whether the remote URL begins with https:// or uses an SSH form such as git@. HTTPS traffic generally follows Git’s HTTP configuration and relevant environment variables. SSH uses its own connection and proxy mechanisms; an HTTP proxy setting alone does not automatically configure SSH. If a clone completes but checkout seems slow, the bottleneck may be local disk activity, a large working tree, or Git LFS rather than the initial repository transfer.

For containers, distinguish commands issued by the Docker CLI from image traffic handled by the daemon. The CLI asks the daemon to perform operations, while the daemon contacts registries to retrieve image manifests and layers. A proxy exported in a shell can affect the CLI or other programs without changing the daemon’s network path. Docker Desktop and a Linux Docker Engine also expose proxy configuration differently, so use the settings for the installation you actually run.

Package managers add another independent path. npm and pip may contact a package registry, an index configured by the user or organization, or a host serving a particular artifact. A dependency installation can therefore fail even when GitHub and Docker Hub work. In CI, the runner’s network policy and environment are usually separate from a developer’s laptop. Record the command, destination, client, and error message before trying a fix.

Git

Repository transport

OCI

Container registry traffic

DNS

Name resolution

CI

Runner egress path

These labels are not four settings to turn on. They are four places to investigate. For example, if a Git clone resolves a host but stalls during transfer, changing DNS is unlikely to help. If the failure occurs before a connection is established and the hostname cannot resolve, first inspect DNS and the active network. Keeping the diagnosis tied to the observed failure makes comparisons meaningful.

Choose a route and proxy scope

Compare a direct connection, a configured application proxy, and a VPN route only when each option is permitted by your network and organization. A direct route has fewer configuration layers, but it may not be suitable on every network. An application proxy can target particular tools or destinations, although each client must support and be configured to use it. A VPN can provide a different network path for traffic covered by its routing rules, but it does not guarantee a faster route to every registry or repository.

Before switching routes, run the same operation with the same repository or image, on the same device, and under comparable conditions. Note whether the failure is name resolution, connection establishment, authentication, or transfer. Compare the complete result rather than a single brief burst: a fast start followed by a stall can point to a different issue from a connection that never begins. Avoid drawing conclusions from an unrelated browser speed test; it measures a different destination and protocol path.

Split tunneling can keep selected traffic outside a VPN while other traffic uses it, or route only specified destinations through the tunnel, depending on the client’s policy model. The exact behavior varies by operating system and client. Check whether rules match applications, domains, IP ranges, or a default route, and whether DNS requests follow the same policy. A rule for a browser does not necessarily cover Git, Docker Desktop, a Linux daemon, or a CI runner.

When a VPN connection is useful for a development task, begin with the smallest scope that covers the affected tool. Test the relevant Git transport or registry request, then verify that ordinary local services and other development traffic still behave as expected. If the client offers route selection, choose a route based on repeatable tests from your location rather than assuming that the geographically nearest option is always the best one. The VPNEnjoy homepage provides service information, but your own client and destination tests should determine which route fits a particular workflow.

  • ✅ Identify whether the client, daemon, or CI runner makes the connection.
  • ✅ Keep unrelated local services outside a tunnel when your routing policy allows it.
  • ✅ Change one route or proxy setting at a time, then repeat the same operation.
  • ❌ Don’t assume a browser’s proxy or VPN behavior applies to every command-line tool.
  • ❌ Don’t leave competing proxy variables and application-specific settings unexplained.

For a team, document the intended route and scope rather than sharing an individual’s machine-specific configuration. State which tools use the proxy, where the proxy is configured, and which destinations should remain direct. That makes troubleshooting reproducible and helps prevent credentials or private network details from being copied into public repositories.

Configure Git, Docker, npm, and pip deliberately

For Git over HTTPS, inspect the effective configuration before adding another setting. Git can read configuration from system, global, and repository scopes, and a setting at a more specific scope can affect the result. Use git config --show-origin --get-regexp 'http\..*proxy' to see configured HTTP proxy entries and where they came from. Also inspect relevant environment variables in the shell that launches Git. If a proxy is no longer needed, remove it from the scope where it was set rather than layering a contradictory value on top.

Git’s proxy configuration for HTTP(S) is not a universal switch for SSH remotes. If the remote uses SSH, check SSH connectivity and any explicitly configured proxy command separately. Corporate firewalls may restrict SSH, in which case an approved HTTPS remote or an organization-provided connection method may be appropriate. Don’t put access tokens, passwords, or private proxy credentials directly into a command that may be saved in shell history or logs. Git LFS may also contact a separate endpoint, so test an LFS fetch independently if the repository metadata arrives but large files do not.

For Docker, configure the proxy for the component that performs the pull. Docker Desktop has its own application settings, while a Linux Engine may receive proxy configuration through its service environment or supported daemon configuration. Follow the documentation for the installed version and restart the relevant component if the change requires it. Then inspect the daemon’s effective environment or diagnostic output and try a pull of the specific image. Do not assume that HTTP_PROXY exported in an interactive terminal automatically reaches a system service.

A container’s build-time or run-time proxy is a different concern from the daemon’s ability to pull an image. A build may need proxy arguments or build configuration for package downloads inside a build step, while the daemon needs its own route to the registry. Avoid baking proxy credentials into an image layer, build argument history, or a committed configuration file. Prefer the secret-handling mechanism supported by your build environment, and remove temporary test values when they are no longer needed.

For npm and pip, inspect the configured registry or package index as well as proxy settings. A registry URL is not the same thing as a proxy URL: changing one to fix the other can redirect package requests unexpectedly. Check project-level configuration, user-level configuration, environment variables, and CI secrets for conflicting values. Where a managed registry or cache is provided by your organization, use its documented endpoint rather than substituting an unfamiliar mirror. This also makes dependency provenance easier to audit.

Tool or operation What to inspect Common mismatch
Git clone or fetch Remote protocol, Git HTTP proxy settings, environment, and authentication Configuring an HTTP proxy while using an SSH remote
Git LFS LFS endpoint, credentials, and the route used for large-file transfers Assuming the ordinary Git transfer proves LFS is reachable
Docker image pull Docker daemon or Desktop proxy configuration and registry access Setting a proxy only in the shell used to run the Docker CLI
npm or pip install Registry or index URL, tool configuration, and proxy variables Replacing an index URL when the actual problem is proxy reachability
CI job Runner egress policy, job environment, secrets, and configured caches Assuming a developer workstation setting is present on the runner

After making a change, check both success and scope. Confirm the intended operation works, then verify that unrelated traffic still follows the expected route. If a setting is needed only for one project, prefer a project-scoped or job-scoped approach when supported and safe. A global proxy setting can affect package installs, local development services, and other repositories long after the original troubleshooting session.

Troubleshoot in a controlled sequence

Use the following sequence when a clone, image pull, or dependency download is slow or fails. Keep a short record of the command, time, network, route, and result. Avoid changing DNS, proxy, and VPN settings simultaneously: if the result changes, you will not know which adjustment mattered.

  1. Reproduce one operation. Choose the exact repository, image, or package operation that shows the problem. Keep the command and target consistent across tests, and capture the complete error rather than only the last line.
  2. Classify the failure stage. Determine whether name resolution fails, the connection is refused or times out, authentication is rejected, or data transfer begins and then stalls. These symptoms point toward different layers and should not be treated as interchangeable.
  3. Check name resolution. Resolve the hostname used in the error and compare the result with the active network’s DNS behavior. Check whether a VPN client supplies DNS settings or whether a proxy resolves names on the client’s behalf. Avoid hard-coding an IP address as a permanent workaround; registry addresses can change and services may depend on hostnames.
  4. Inspect the effective proxy. Look at the environment of the process that actually connects, not merely the terminal from which a command was launched. For Docker, include the daemon or Desktop application in the check. Look for stale proxy values, missing scheme information, authentication errors, and settings that differ between HTTP and HTTPS.
  5. Test a different permitted route. Compare direct access, the approved proxy, or a VPN route if available. Change only one option and repeat the same operation. If one route works, record that observation; it does not by itself establish whether the original problem was DNS, filtering, congestion, or a client-specific configuration.
  6. Separate authentication from transport. A request that reaches a service but receives an authorization error is not necessarily a speed problem. Confirm that the correct account, token scope, and credential helper are in use. Never paste a token into a public issue or diagnostic log.
  7. Check the secondary transfer. If a repository clones but its large files fail, test Git LFS. If an image manifest is available but a layer fails, inspect daemon logs and registry connectivity. If a package manager resolves dependencies but cannot fetch an artifact, identify the artifact host rather than assuming the index is the only destination.
  8. Revert temporary settings. Remove diagnostic overrides that are not part of the intended setup. Repeat the original operation once more to confirm that your final configuration—not a temporary shell export or cached credential—is responsible for the result.

DNS changes deserve particular care. A DNS resolver translates hostnames into addresses; it does not necessarily improve the capacity or route of the subsequent data transfer. A different resolver can also change filtering, privacy, or access behavior. Use a resolver approved for your environment, check whether the VPN client expects its own DNS handling, and avoid editing system-wide DNS just to work around one application’s proxy error.

Docker and package managers can cache metadata or content, so a repeat request may behave differently from a first download. Note whether the test uses a warm cache, a fresh build, or a previously downloaded layer. Clear caches only when there is a reason to test cache behavior; indiscriminate cleanup can create more network traffic and remove useful diagnostic evidence.

Practical rule: diagnose the failing layer first, then change only the route or setting used by the process that reaches the destination.

Make the setup reliable in CI and keep costs predictable

CI has its own network boundary. A runner may use a managed NAT gateway, organization proxy, restricted egress policy, or hosted environment with settings that differ from a developer’s workstation. Put required proxy configuration in the runner or job environment using the platform’s secure settings. Keep secrets out of printed commands and logs, and avoid writing credentials into Docker images, build artifacts, or repository files. If a job is failing, compare its effective configuration with the documented runner policy rather than copying a laptop’s entire environment.

Caches can reduce repeated transfers, but they need a clear scope and invalidation policy. A package cache may avoid fetching unchanged dependencies; a container layer cache may help only when build inputs and cache access are arranged appropriately. Verify that the cache belongs to the intended project or trust boundary, and make sure the workflow still behaves correctly when a cache miss occurs. A cache should improve routine work without becoming an undocumented prerequisite for a clean build.

When several developers share a slow path, collect evidence before buying a more expensive connection or adding infrastructure. Determine whether the bottleneck is limited to one client, one destination, one network, or one CI environment. If a company proxy or registry cache is available, ask its administrator about documented limits and support. If the issue follows one tool across networks, inspect its configuration and version before changing the whole team’s route.

For individual planning, separate recurring service costs from usage-based infrastructure costs such as hosted runners, registry storage, and egress. Do not select a plan based on an assumed speed guarantee: throughput depends on the destination, local network, device, route, and competing traffic. If you compare VPN options, test the actual developer workflow and check that the operating systems and clients you use can be configured as intended. Keep the chosen setup simple enough that you can explain which traffic uses it and how to restore the previous state.

A stable developer setup is usually a small collection of explicit decisions: the correct Git transport, a proxy configured where the connection originates, DNS that matches the network policy, and a route tested against the actual registry or repository. Apply those decisions to CI separately, protect credentials, and retain a direct troubleshooting path. This is more reliable than turning on every available proxy option and hoping that downloads improve.