0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

harborでDockerImageのキャッシュを持たせるようにする設定

Posted at

harbor

  • コンテナイメージをSlefHostedできるソフトウェア
  • DockerHubのPullLimitへの対策やインターネット接続ができない完全プライベートネットワークなど、コンテナレジストリを冗長化することができる

コンテナイメージのキャッシュ

以下のようなイメージでPullする。

クライアント → Harbor → インターネット上で公開されているパブリックリポジトリ

一度、Harborに問い合わせ、自身にキャッシュがなければ、インターネット上に問い合わせしに行くというもの。
キャッシュが効いているHTTPプロキシサーバのイメージ。

設定方法

リファレンスの通りに設定すればOK。

ProjectでProxy Cacheを有効にして作成する。

image.png

その前に、DockerHubをレジストリとして登録してあげる必要がある。(リファレンスにのってる)
image.png

動作確認

docker pull harbor.vamdemic.local/proxy_cache_project/goharbor/harbor-core:dev

Harbor上にキャッシュされるのが分かる
image.png

参考

https://goharbor.io/docs/2.1.0/administration/configure-proxy-cache/
https://blog.cybozu.io/entry/2021/01/26/090000

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?