Giter Club home page Giter Club logo

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

podman run \
  -p 9000:9000 \
  -p 9001:9001 \
  minio/minio server /data{1...4} --console-address ":9001"
  • Install Harbor registry

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

Edit harbor.yml

Add the s3 configuration to the storage_service section in your harbor/harbor.yml.

storage_service:
  s3:
    accesskey: minio
    secretkey: minio123
    region: us-east-1
    regionendpoint: http://minio-endpoint:9000
    bucket: harbor
    secure: false
    v4auth: true

Start Harbor registry

sudo ./install.sh
Creating harbor-jobservice ... done
Creating nginx             ... done
✔ ----Harbor has been installed and started successfully.----

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

Create a custom project

Visit http://reg.example.com 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 reg.example.com
Username: admin
Password: Harbor12345
Login Succeeded

Proceed to push your first image to the harbor registry.

docker tag ubuntu reg.example.com/myproject/myrepo
docker push reg.example.com/myproject/myrepo
The push refers to a repository [reg.example.com/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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

harbor-minio's Issues

Harbor mino connection error

harbor.yml configure

storage_service:
  s3:
    accesskey: minio
    secretkey: minio123   #之前创建harbor的secretkey
    region: us-east-1     #随便写一个区就可以,必填项
    regionendpoint: http://192.168.1.2:9090
    bucket: harbor    #上面创建的bucket名字
    secure: false
    v4auth: true

An image uploading error occurred. Procedure

[root@harbor-1 harbor]# docker push dockerhub.kubesphere.local/library/centos:latest
The push refers to repository [dockerhub.kubesphere.local/library/centos]
74ddd0ec08fa: Retrying in 1 second 
received unexpected HTTP status: 500 Internal Server Error

docker logs -f registry
error log

level=error msg="response completed with error" auth.user.name="harbor_registry_user" err.code=unknown err.detail="s3aws: SerializationError: failed to decode REST XML response

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.