Bug 1905404
| Summary: | The example of "Remove the entrypoint on the mysql:latest image" for `oc image append` does not work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.7 | CC: | aos-bugs, jokerman, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 15:41:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 |
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: