Following on from my most recent Podman-related posts I'm creating an image to test my RedHat OpenShift Kubernetes Service (ROKS) deployment.
Given that I'm living in the IBM Cloud CLI, I thought I'd try the ic cr command-line: -
ic cr build --no-cache de.icr.io/roks_oct2021/hello_world:latest --file Dockerfile .
FAILED
The 'build' command is deprecated, you must specify the --accept-deprecation option to use this command. For more information see: https://www.ibm.com/cloud/blog/announcements/ibm-cloud-container-registry-deprecating-container-builds
Aw shucks, of course ...
Thankfully, I have Podman ...
podman build --no-cache -t de.icr.io/roks_oct2021/hello_world:latest -f Dockerfile .
and then, having created myself a namespace in ICR: -
ic cr namespace-add roks_oct2021
I can push the image: -
podman push de.icr.io/roks_oct2021/hello_world:latest
and we're off to the races ...
ic cr images
Listing images...
Repository Tag Digest Namespace Created Size Security status
de.icr.io/roks_oct2021/hello_world latest 029263beb4d4 roks_oct2021 43 minutes ago 16 MB No Issues
OK
No comments:
Post a Comment