Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

joseluisq/alpine-docker-registry

Repository files navigation

Deprecation Notice: This project was deprecated. Please use the official Docker Registry Image.


Alpine / Docker Registry Docker Cloud Build Status

Alpine and Docker Registry v2 x86_64 image.

Overview

This image contain Docker Registry v2 binary in the top of Alpine x86_64.

Usage

docker run --rm -it joseluisq/alpine-docker-registry:latest

Dockerfile

You can also use the image as a base for your own Dockerfile:

FROM joseluisq/alpine-docker-registry:latest

Docker Compose / Stack

Below an example using docker-registry as a service:

version: "3.3"

services:
  docker-registry:
    restart: unless-stopped
    image: joseluisq/alpine-docker-registry:latest
    environment:
      # Docker Registry env variables
      - REGISTRY_HTTP_ADDR=0.0.0.0:5000
    ports:
      - "5000:5000"
    volumes:
      - ./config.yml:/etc/docker/registry/config.yml
      - ./.htpasswd:/etc/docker/registry/.htpasswd
    volumes:
      - some_registry_data:/var/lib/registry
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
      restart_policy:
        condition: on-failure
    networks:
    - some_network_net

volumes:
  some_registry_data:

networks:
  some_network_net:
    external:
      name: some_network_net

Configuration

Read to the official documentation at https://docs.docker.com/registry/configuration/

Related

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2019 Jose Quintana