GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - The127/dockyard: A simple, fast and selfhostable oci container registry written in go.

BranchesTags
Open more actions menu

Latest commit

 

History

303 Commits
303 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea/runConfigurations
.idea/runConfigurations
 
 
cmd/dockyard
cmd/dockyard
 
 
internal
internal
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
Containerfile
Containerfile
 
 
DCO.md
DCO.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
compose.yml
compose.yml
 
 
config.yml
config.yml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
keyline-config.yaml
keyline-config.yaml
 
 

Repository files navigation

Dockyard

Dockyard is an OCI (Open Container Initiative) compliant container registry implementation written in Go. It provides a lightweight, multi-tenant Docker registry server with support for projects and repositories.

Features

  • OCI Compliant: Implements the OCI Distribution Specification for container image storage
  • Multi-tenant Support: Built-in tenant isolation with project and repository organization
  • Flexible Storage: Configurable database and cache backends
    • In-memory database (default)
    • In-memory cache (default)
    • Redis cache support
  • REST API: Administrative API for tenant management and health checks
  • Lightweight: Minimal dependencies and simple configuration

Prerequisites

  • Go 1.25 or higher
  • (Optional) Redis for cache backend

Installation

From Source

  1. Clone the repository:
git clone https://github.com/The127/dockyard.git
cd dockyard
  1. Build the application:
go build -o dockyard ./cmd/dockyard
  1. Run the server:
./dockyard

Configuration

Dockyard can be configured using a config.yml file or environment variables.

Configuration File

Create a config.yml file in the project root:

server:
  port: 8082
  host: 0.0.0.0
  allowedOrigins:
    - "*"

database:
  mode: memory  # or "postgres", "mysql", etc.

cache:
  mode: memory  # or "redis"
  # redis:
  #   host: localhost
  #   port: 6379

Environment Variables

Configuration can also be provided via environment variables with the prefix matching the YAML structure.

Usage

Starting the Server

./dockyard

The server will start on port 8082 by default.

API Endpoints

Health Check

curl http://localhost:8082/admin/api/v1/health

OCI Registry Endpoint

curl http://localhost:8082/v2/

Docker Client Usage

Configure your Docker client to use Dockyard as a registry:

# Push an image
docker tag myimage:latest localhost:8082/tenant/project/myimage:latest
docker push localhost:8082/tenant/project/myimage:latest

# Pull an image
docker pull localhost:8082/tenant/project/myimage:latest

Project Structure

.
├── cmd/
│   └── dockyard/          # Main application entry point
├── internal/
│   ├── config/            # Configuration management
│   ├── database/          # Database abstractions
│   ├── handlers/          # HTTP request handlers
│   │   ├── adminhandlers/ # Admin API handlers
│   │   └── ocihandlers/   # OCI API handlers
│   ├── middlewares/       # HTTP middlewares
│   ├── repositories/      # Data repositories
│   ├── server/            # HTTP server setup
│   └── services/          # Business logic services
├── config.yml             # Configuration file
└── go.mod                 # Go module dependencies

Development

Running Tests

go test ./...

Building

go build -o dockyard ./cmd/dockyard

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues, questions, or contributions, please use the GitHub issue tracker.

About

A simple, fast and selfhostable oci container registry written in go.

Resources

Readme
AGPL-3.0 license
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.