Description:
Image for Openshift registry-console pod not found.
Sample Error Log:
Warning Failed 35m (x807 over 2d) kubelet, master01.cluster Failed to pull image "docker.io/cockpit/kubernetes:latest": rpc error: code = Unknown desc = manifest for docker.io/cockpit/kubernetes:latest not found
Solution Overview:
Change the image in the registry-console pod deployment config.
Precaution:
Backup the registry-console deployment config before making changes to it, allowing a rollback to the previous config should something go wrong after editing the deployment config.
- Change to the default project:
root@master01:~# oc project default Now using project "default" on server "https://opencontainer-internal.cluster:443".
- Backup the registry-console deployment config:
root@master01:~# oc get dc docker-registry registry-console router root@master01:~# oc get dc registry-console -o yaml > dc_registry_console.bak
Solution Steps:
Edit the registry-console deployment config and change the container image from docker.io/cockpit/kubernetes:latest to registry.redhat.io/openshift3/registry-console.
- Change container image in registry-console deployment config:
spec: ... template: ... spec: containers: ... image: registry.redhat.io/openshift3/registry-console
Alternative Solution:
Use the oc set image command to update the deployment config without manually editing it:
root@master01:~# oc set image dc/registry-console registry-console=registry.redhat.io/openshift3/registry-console