cancel
Showing results for 
Search instead for 
Did you mean: 

Couldn't create docker image on DI 3.0

former_member711190
Discoverer
0 Kudos

Hi

I am trying to build a docker file using commands :

FROM $com.sap.sles.base

RUN python3.6 -m pip install numpy==1.16.4 --user

RUN python3.6 -m pip install pandas==0.24.0 --user

RUN python3.6 -m pip install sklearn --user

But still I am getting this error :

error building docker image. Docker daemon error: The command '/bin/sh -c python3.6 -m pip install numpy==1.16.4 --user' returned a non-zero code: 1No where, I am able to find the concrete solution. Although I have already read through your blog.

former_member34
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. You should also make sure you're using all the appropriate tags, so the right experts can find your question.

Should you wish, you can revise your question now by selecting Actions, then Edit.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.

Best regards

Jennifer

SAP Community moderator

Accepted Solutions (0)

Answers (1)

Answers (1)

architectSAP
Active Contributor
0 Kudos

Hello Rachit,

This works in SAP DI 3.0.5:

FROM $com.sap.sles.ml.python
RUN python3.6 -m pip --no-cache-dir install --user --upgrade pip
RUN python3.6 -m pip --no-cache-dir install --user numpy
RUN python3.6 -m pip --no-cache-dir install --user pandas
RUN python3.6 -m pip --no-cache-dir install --user sklearn

See also https://answers.sap.com/questions/13155229/installing-python-libraries-in-sap-di-modeler.html?childT....

Best regards

0 Kudos

Hi Frank,

Thanks for the response but still I am facing the same issues. As tags are not automatically generated while creating a Docker image.

Regards

architectSAP
Active Contributor
0 Kudos

Hello Rachit,

tags haver to be maintained manually in the Dockerfile Configuration:

Best regards

0 Kudos

Thanks Frank, for coming back to me.

I am currently using the trail version 3.0 . And the above comment you updated is my docker file or ml.python docker file.?