S2I builds fail with error "container exited on killed" in RHOCP4
Issue
- The S2I builder pod's container fails with error
container exited on killed
.
$ oc logs <builer-pod-name>
...
STEP 4/9: USER root
STEP 5/9: COPY upload/src /tmp/src
STEP 6/9: RUN chown -R 185:0 /tmp/src
container exited on killed
error: build error: building at STEP "RUN chown -R 185:0 /tmp/src": while running runtime: exit status 1
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.