Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 778 Bytes

File metadata and controls

30 lines (19 loc) · 778 Bytes

hub-mirror

GitHub Action to configure a Docker Hub mirror for actuated servers.

  • Writes /etc/docker/daemon.json to use the mirror and trust its CA
  • Creates a buildx builder that uses the mirror and trusts its CA

If you run docker/setup-buildx-action after this action, it will overwrite the buildx builder created by this action.

Learn more

Examples

The v3 version uses TLS for the registry with a CA injected to the VM and is the same as master

      - uses: self-actuated/hub-mirror@v3

Set a custom MTU for Docker's bridges i.e. for GCP's defaults on VPCs (1460):

      - uses: self-actuated/hub-mirror@v4
        with:
          mtu: 1460

License

MIT License