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.

OpenShiftのコンテナーレジストリー用プルシークレットの登録

Posted at

目的

OpenShift に Cotinaer Registryログイン用のログイン情報を保管する方法の備忘録です。

Podmanログイン

podman login すると json ファイルにログイン情報が残ります。これを使ってOpenShiftに登録できます

podman login docker.io

jsonファイルがどこに作成されるかは以下に記載がありました。

podman-login — Podman documentation

${XDG_RUNTIME_DIR}/containers/auth.json on Linux, and
$HOME/.config/containers/auth.json on Windows/macOS. 
The file is created by podman login. 

If the authorization state is not found there, 
$HOME/.docker/config.json is checked, which is set using docker login.

Dockerの情報は見つかるのですが、podmanで場所がわからず探すことになりましたが、マニュアルに記載ありました。

OpenShiftに登録

ファイルが見つかれば、登録はすぐにできます。

oc login -u kubeadmin
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=$HOME/.config/containers/auth.json

まとめ

OpenShiftに Container Registryログイン用の情報を登録できました。

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?