Skip to content

Instantly share code, notes, and snippets.

@avin
Last active May 30, 2024 10:27
Show Gist options
  • Save avin/42693dc54e31471a4e05512acdff5c26 to your computer and use it in GitHub Desktop.
Save avin/42693dc54e31471a4e05512acdff5c26 to your computer and use it in GitHub Desktop.
Docker hub mirror caprover app
captainVersion: 4
services:
$$cap_appname:
image: registry:2
ports:
- "5000:5000"
environment:
REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io
caproverOneClickApp:
variables:
instructions:
start: >-
Docker hub mirror
end: >
Mirror is deployed.
displayName: DockerHubMirror
isOfficial: false
@avin
Copy link
Author

avin commented May 30, 2024

~/.docker/daemon.json

"registry-mirrors" : [ "https:\/\/myserver.com" ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment