Mirroring a Private Docker Image for Render
We recently moved a client’s Ruby on Rails app from Heroku to Render. Most of the services around it were built by the client’s own Dockerfiles and scripts, but imgproxy Pro, an image processing server, ran straight from an upstream image. imgproxy publishes the Pro version to its own private registry, docker.imgproxy.pro, and on Heroku the client deployed that image with nothing but configuration on top.
Setting up imgproxy Pro on Render the same way doesn’t work. If you enter that image URL for a new service in the Render dashboard, you get this message:
No public image found. It looks like you may be using a private image - please add a credential or check the image URL for mistakes.
The image URL was fine, so adding a credential was the way forward. That’s where I got stuck, because Render can only authenticate to a handful of registries for private images, and imgproxy’s registry isn’t one of them. In this article, you’ll see why Render couldn’t pull the image, how I mirrored it into GitHub Container Registry with a small GitHub Actions workflow, how to keep the mirrored package private, and how to give Render a credential to pull it.
Why Render couldn’t pull the image
Render can deploy a service straight from a prebuilt Docker image, and for public images, it doesn’t much care where they live: it can pull them from any registry it can reach . Private images are a different story. To pull one, Render needs a registry credential, and as of October 2026, it only supports credentials for five registries: Docker Hub, GitHub Container Registry (GHCR), GitLab Container Registry, Google Artifact Registry, and Amazon ECR.
imgproxy Pro is a paid version of imgproxy, so its image is private, and docker.imgproxy.pro isn’t on that list. There was no credential I could give Render that would let it log in. So the image had to live somewhere Render could authenticate to. In principle, any registry on that list would do, so it came down to which one the client already used.
Mirroring the image into GHCR
The client’s ops repo already published its other images to GHCR, so that was the obvious place for a copy of imgproxy Pro, at ghcr.io/your-org/imgproxy. Before automating anything, I pushed the first copy by hand. I hadn’t added an image to GHCR before, and I wanted to know how the process worked before writing a workflow around it.
I pulled the tag from imgproxy’s registry, retagged it for GHCR, and pushed it. Logging in to GHCR takes a classic personal access token with the write:packages scope:
docker login -u imgproxy docker.imgproxy.pro
docker pull docker.imgproxy.pro/imgproxy:vX.Y.Z
docker tag docker.imgproxy.pro/imgproxy:vX.Y.Z ghcr.io/<your-org>/imgproxy:vX.Y.Z
echo "$GITHUB_PAT" | docker login ghcr.io --username <user> --password-stdin
docker push ghcr.io/<your-org>/imgproxy:vX.Y.Z
Pulling and pushing like this only copies the platform your machine pulled. Render runs linux/amd64 images, so if you do this from an Apple Silicon Mac, add --platform linux/amd64 to the docker pull. The workflow below uses docker buildx imagetools create instead, which copies the image between registries without pulling it first and keeps every platform the upstream tag has.
With the copy in place, the service on Render builds from a Dockerfile in the ops repo instead of deploying the image directly, so the imgproxy version lives in the repo and changes to it go through a normal merge. Most Dockerfiles do real work (I wrote about multi-stage Dockerfiles for Ruby apps recently), but this one is deliberately boring. Here’s a simplified version (the organization name and version are placeholders):
# The mirror workflow reads this line, so upgrading imgproxy means changing it.
ARG IMGPROXY_VERSION=vX.Y.Z
FROM ghcr.io/your-org/imgproxy:${IMGPROXY_VERSION}
That’s the whole file. All of imgproxy’s configuration comes from environment variables, which we set in the service’s render.yaml Blueprint, so there was nothing to add to the image. Keeping the Dockerfile this thin means the mirrored image is the same image imgproxy ships, and the only thing that changes from one release to the next is the version.
The ARG before FROM is what lets the version live in one place. It’s also what the mirror workflow reads to know which tag to copy, which brings us to keeping the copy up to date.
Keeping the mirror in sync
A copy pushed by hand is fine until imgproxy releases a new version. To avoid someone having to remember to copy every new tag, I added a GitHub Actions workflow to the ops repo that does it whenever the version changes. Here’s a simplified version of it (the organization and the secret names are placeholders):
# .github/workflows/mirror_imgproxy.yml
name: Mirror imgproxy Pro
on:
push:
branches: [main, production]
paths:
- imgproxy-pro/Dockerfile
- .github/workflows/mirror_imgproxy.yml
permissions:
contents: read
packages: write
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Read the imgproxy version from the Dockerfile
id: version
run: |
echo "tag=$(sed -n 's/^ARG IMGPROXY_VERSION=//p' imgproxy-pro/Dockerfile)" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
registry: docker.imgproxy.pro
username: ${{ secrets.IMGPROXY_PRO_USERNAME }}
password: ${{ secrets.IMGPROXY_PRO_PASSWORD }}
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Copy the tag unless it's already mirrored
env:
SOURCE: docker.imgproxy.pro/imgproxy:${{ steps.version.outputs.tag }}
TARGET: ghcr.io/your-org/imgproxy:${{ steps.version.outputs.tag }}
run: |
if docker buildx imagetools inspect "$TARGET" > /dev/null 2>&1; then
echo "$TARGET is already mirrored, nothing to do."
else
docker buildx imagetools create --tag "$TARGET" "$SOURCE"
fi
The workflow only runs when the Dockerfile or the workflow itself changes on the main or production branches. It reads the version from the ARG line, logs in to both registries, and checks whether that tag is already in GHCR. If it isn’t, docker buildx imagetools create copies it over from imgproxy’s registry (Docker documents this approach in its guide to copying images between registries ). If it is, the workflow does nothing. The push only works once the package is linked to the ops repo, which the next section covers.
The workflow does run more than once for the same version. When a version bump is merged to main, the workflow copies the new tag. When main is later merged to production, the workflow runs again, finds the tag already there, and stops. Editing the workflow file also triggers a run. Copying the same tag twice wouldn’t break anything, but the check skips the repeated copy, and it means a tag that’s already mirrored never gets silently replaced if imgproxy re-pushes it upstream.
Because changes reach main before production, the new tag is already in GHCR by the time Render needs it. Render deploys the imgproxy service from the production branch, so when a version bump gets there, the mirror has already copied that tag during the earlier merge to main. That holds as long as the bump goes through main first and the mirror run there succeeds.
So upgrading imgproxy Pro comes down to changing IMGPROXY_VERSION in the Dockerfile and merging it like any other change.
Keeping the package private
Since imgproxy Pro is paid software, the mirrored copy shouldn’t be readable by anyone who stumbles onto it. GHCR packages pushed to an organization start out private , visible only to whoever published them. That’s safe, but it isn’t very useful on its own, since the mirror workflow needs to push new tags to the package.
The fix is to link the package to a repository. We connected the mirror to the ops repo from the package settings and turned on “Inherit access from repository”. The package now gets the repo’s access permissions , and workflows in the ops repo can push to it. Linking doesn’t change visibility, though. The package stays private because it started private, not because the ops repo is private.
You can tell the link worked in a few places. The package’s URL moves under the repository (github.com/your-org/your-ops-repo/pkgs/container/imgproxy), the package shows up in the repository’s sidebar, its settings list the ops repo as the repository source, and the repo appears under “Manage Actions access”. That last one is what lets the mirror workflow push new tags, as long as the repo’s role there is Write or Admin (with Read, the push step fails). To confirm the package is private, look for the “Private” label on the package page. Don’t flip it to public, even briefly. GitHub won’t let you make it private again.
The registry credential on Render
The last piece is letting Render read the private package. Render stores registry credentials at the workspace level, and each one is a name, the registry, a username, and a personal access token . For GHCR, that means a classic personal access token with the read:packages scope, since GitHub Packages authenticates with classic tokens . Once the credential is selected in the imgproxy service’s Registry Credential setting , Render can pull the mirrored image when it builds from the Dockerfile.
To get things working, I created that token from my own GitHub account, and the client later replaced it. If you do the same, plan that replacement from the start. A token tied to one person stops working when that person leaves the organization, loses access, or lets the token expire, and often the first sign of it is a failed deploy. A token owned by the client, ideally from an account that exists for this purpose, keeps the deploy from depending on who happens to still be on the project.
Conclusion
In this article, we went through why Render couldn’t pull imgproxy Pro from its own registry, and how a copy in GHCR got around it: a Dockerfile that adds nothing to the upstream image, a workflow that mirrors a tag only when it isn’t there yet, a package linked to the ops repo so it inherits that repo’s access, and a registry credential Render can use. The same approach should work for any private image that lives in a registry Render can’t authenticate to. If Render isn’t where you’re headed, we’ve also written about migrating a Rails app from Heroku to Railway .
Keep in mind that a mirror is one more thing you own. The workflow keeps it in sync as long as every upgrade goes through the IMGPROXY_VERSION line, so if someone changes the image tag anywhere else, the mirror and the Dockerfile can drift apart. It also means imgproxy’s fixes, security ones included, only reach you when someone bumps the version, so the mirrored tag can quietly go stale the same way any container image can .
Planning a move off Heroku? Take a look at how we approach Heroku migrations , and send us a message !