IBM Support

Can I run a docker image downloaded from CPD on my local machine?

Question & Answer


Question

I build custom images based on Jupyter Notebooks runtime images available in IBM Watson Studio according to the Doc. 
Before the custom image is deployed to CPD, I need to test it on my local machine by "docker run" command. But I always get the error.
# docker run testimage:v1.0
[FATAL tini (7)] exec /opt/ibm/ws/bin/setup_container.sh failed: No such file or directory
Is there any way to avoid this error?

Answer

The custom image can be run manually by executing:

docker run -it --user=root custom:1.0 /bin/bash

This command launch a shell into the container. The user can then check the available environments: "conda env" list and verify that all packages were installed sucessfully: "conda list -n <env-name>". Activating the environment work as well.

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m50000000ClWMAA0","label":"Analyze-\u003EEnvironments"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.0.9"}]

Document Information

Modified date:
27 May 2023

UID

ibm16999027