Giter Site home page Giter Site logo

leoterry-ulrica / harbor-minio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harshavardhana/harbor-minio

0.0 2.0 0.0 31 KB

How to use Harbor with Minio?

License: Apache License 2.0

enterprise-private-registry amazon-s3-storage harbor distributed-object-store

harbor-minio's Introduction

How to use VMware Harbor with Minio?

Harbor is an enterprise-class docker registry server to store and distribute container images. Follow this document to use Minio object storage server as a storage backend for Harbor container registry.

Prerequesites

docker run -p 9000:9000 --name minio \
  -e "MINIO_ACCESS_KEY=minio" \
  -e "MINIO_SECRET_KEY=minio123" \
  -v /mnt/minio/export:/export \
  -v /mnt/minio/config:/root/.minio \
  minio/minio:RELEASE.2017-02-16T01-47-30Z server /export
  • Install Harbor registry

The binary of the installer can be downloaded from the release page. Follow harbor installation and configuration guide for further instructions.

Edit config.yml

Add the s3 configuration to the storage section in your common/templates/registry/config.yml (right below the cache configuration). Here is a complete example config.yml for your reference.

storage:
    s3:
      accesskey: minio
      secretkey: minio123
      region: us-east-1
      regionendpoint: http://YOUR-MINIO-IP:9000
      bucket: docker-registry
      encrypt: false
      secure: false
      v4auth: true
      chunksize: 5242880
      rootdirectory: /

Start Harbor registry

./install.sh
[Step 1]: preparing environment ...
loaded secret key
...
...
โœ” ----Harbor has been installed and started successfully.----

Now you should be able to visit the admin portal at https://172.23.0.7. 
For more details, please visit https://github.com/vmware/harbor .

Note that the default administrator username/password are admin/Harbor12345.

Create a custom project

Visit https://172.23.0.7 and login to create a project name myproject

HARBOR_PROJECT

Push your first image

Login to the harbor registry before attempting to push your first image.

docker login 172.23.0.7
Username: admin
Password: Harbor12345
Login Succeeded

Proceed to push your first image to the harbor registry.

docker tag ubuntu 172.23.0.7/myproject/myrepo
docker push 172.23.0.7/myproject/myrepo
The push refers to a repository [172.23.0.7/myproject/myrepo]
5eb5bd4c5014: Pushed 
d195a7a18c70: Pushed 
...

To check if image has been successfully uploaded login from Minio browser console through http://YOUR-MINIO-IP:9000 with username minio and password minio123.

Questions

Join Minio community

harbor-minio's People

Contributors

harshavardhana avatar

Watchers

James Cloos avatar leoterry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.