Description of problem: The example of "Remove the entrypoint on the mysql:latest image" in `oc image append` does not work Version-Release number of selected component (if applicable): Client Version: 4.7.0-202012041716.p0-db6b7f1 How reproducible: always Steps to Reproduce: 1) Follow the help info to run `oc image append` like: `oc image append -a /home/yinzhou-0316/config.json --from library/mysql:latest --filter-by-os=linux/amd64 --to privateregistryurl:5000/openshifttest/mysqltest2:latest --image {"Entrypoint":null}` Actual results: 1) Hit error: error: unable to patch image from --image: invalid character 'E' looking for beginning of object key string Expected results: 1) Give correct example from the help info. Additional info:
Checked with latest oc , the issue has fixed: [root@preserver-workloadrhel-1 ~]# oc version Client Version: 4.7.0-202012170204.p0-38273af [root@preserver-workloadrhel-1 ~]# oc image append -h Add layers to container images .... Usage: oc image append [flags] Examples: # Remove the entrypoint on the mysql:latest image oc image append --from mysql:latest --to myregistry.com/myimage:latest --image '{"Entrypoint":null}' and the command works well. `oc image append --from library/mysql:latest --filter-by-os=linux/amd64 --to localhost:5000/openshifttest/mysqltest2:latest --image '{"Entrypoint":null}' `
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633