Description of problem: Command in warning message is incomplete like below: * WARNING: The Dockerfile has some invalid ports in EXPOSE instruction: [failed to parse port /tcp: [port number must be in range 0 - 65535]] * The image does not expose any ports - if you want to load balance or send traffic to this component you will need to create a service with 'expose dc/ocnewappexpose --port=[port]' later Version-Release number of selected component (if applicable): oc v3.10.0-0.16.0 How reproducible: always Steps to Reproduce: 1.Define incorrect port in Dockerfile 2.Build with it 3. Actual results: Command in warning is like below: expose dc/ocnewappexpose --port=[port] Expected results: It should be oc expose dc/ocnewappexpose --port=[port] Additional info:
Fix in https://github.com/openshift/origin/pull/22212
Verified with below version: Client Version: v4.0.22 Server Version: v1.12.4+0ba401e * WARNING: The Dockerfile has some invalid ports in EXPOSE instruction: [failed to parse port /tcp: [port number must be in range 0 - 65535]] * The image does not expose any ports - if you want to load balance or send traffic to this component you will need to create a service with 'oc expose dc/ocnewappexpose --port=[port]' later
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, 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/RHBA-2019:0758