Comments (7)
@AlexZeitler , thanks for your suggestion, I opened #59
from harbor.
i came across this issue, but i wait a moment, it will show the image. maybe something need update period.
from harbor.
There's a webhook in ui container to update the images in cache, it should not take more than a few seconds. @AlexZeitler, how long do you have to wait? Could you attach the config.yml of registry? It's location is harbor/Deploy/config/registry/config.yml
from harbor.
@reasonerjt I have been waiting for about 2 minutes.
config.yml
:
version: 0.1
log:
level: debug
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /storage
maintenance:
uploadpurging:
enabled: false
http:
addr: :5000
secret: placeholder
debug:
addr: localhost:5001
auth:
token:
issuer: registry-token-issuer
realm: http://localhost/service/token
rootcertbundle: /etc/registry/root.crt
service: token-service
notifications:
endpoints:
- name: harbor
disabled: false
url: http://localhost/service/notifications
timeout: 500
threshold: 5
backoff: 1000
from harbor.
@AlexZeitler I see, in harbor.cfg you need to set the hostname with the IP of eth0 such as "192.168.0.2", not "localhost".
See the section of notifications, the registry will make http call to the "url", and since registry is running in a container and the /service/notofications/ is running in another process outside the container, the call will fail and the cache will not be updated.
from harbor.
@reasonerjt Thanks, this did the trick! 👍
Just for the understanding: ui
(which hosts /service/notifications
) and registry
both run in containers and they're linked according to docker-compose.yml
(at least ui
can see registry
).
So if registry
would also link ui
it could access it by its IP which is exposed as an environment variable to the registry
container.
Or if you switch to docker-compose
1.6+ you could just use the default network and access the containers by their names so http://ui/service/notifications
should just work without even setting host or IP.
Is there a reason for not doing that? (sorry, I'm just beginning with golang...)
from harbor.
Closing this issue and the problem is fixed. further work will be tracked in #59
from harbor.
Related Issues (20)
- On tls issues with the certificate - token service returns empty token without any error or log record HOT 3
- ECDSA certificates for internal tls aren't supported HOT 5
- Repositories API cannot distinguish between images and charts. HOT 2
- image last pull time updated by image scan though global option set not to do so HOT 5
- Harbor doesn't replicate all image tags HOT 7
- replications function sync some error image HOT 3
- Is Harbor v2.10.0 compatible with external database with postgres version 13.13 ? HOT 1
- What versions of postgresql of external DB does the harbor 2.10.0 support ? HOT 1
- Cannot delete signed artifacts [URGENT] HOT 6
- harbor HA config for jobservice and registry
- The job doesn't show up in the job service dashboard when reaches the default(24h) execution timeout
- Immutability rules issue with character "/" HOT 5
- Containers fail to start HOT 2
- install failed HOT 2
- Harbor can't connect to external redis using TLS connection HOT 2
- Feature Request: Allow Robot Accounts to manage Robots! HOT 2
- docker push fails HOT 1
- Can't validate the project_metadata HOT 2
- Getting HTTP 404, "Manifest Unknown" when pushing an image to Harbor HOT 2
- Cannot add or update project metadata by calling the swagger API directly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.