User Tools

Site Tools


wiki:private_docker_registry

Private docker registry

Example docker compose file:

version: '3'
services:
    registry:
        restart: unless-stopped
        image: registry:2
        container_name: docker-registry
        environment:
            - TZ=Europe/Zagreb
            - REGISTRY_STORAGE_DELETE_ENABLED=true
        ports:
          - 127.0.0.1:5000:5000
        volumes:
          - docker-registry:/var/lib/registry

volumes:
    docker-registry:
        driver: local

Notice we need to pass environment variable to be able to delete old images via the API. See below on curl commands for deleting it.

Tested on

  • docker 24.0.7
  • docker registry image 01.2024

See also

References

wiki/private_docker_registry.txt · Last modified: 2024/01/10 16:52 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki