Docker: The Command Returned A Non-zero Code: 137
My docker file is as follows: #Use python 3.6 image FROM python:3.6 ENV PYTHONUNBUFFERED 1 #install required packages RUN apt-get update RUN apt-get install libsasl2-dev libldap2-
Solution 1:
As described, the command RUN appmanage.py appconfig appAdd.json
run successfully as expected and reported that System check identified no issues (0 silenced).
.
Moreover, the command "insisted" on killing itself and return exit code of 137. The minimum changes for this to work is to update your Dockerfile
to be like
...
#Run a script
#Note: Here appmanage.py is a file inside the pip installed location(site-packages), but it will be accessible directly without cd to the folder
RUN appmanage.py appconfig appAdd.json || true
...
This will just forcefully ignore the return exit code from the previous command and carry on the build.
Post a Comment for "Docker: The Command Returned A Non-zero Code: 137"