Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Can't pull Docker Image

  • 1.  Can't pull Docker Image

    Posted Thu May 08, 2025 05:55 AM

    Hello,

    I've successfully logged into docker login cp.icr.io with my entiltement key, but when I try to pull docker image, it writes me this: docker pull cp.icr.io/cp/manage/graphite/app-designer:9.0.9
    Error response from daemon: pull access denied for cp.icr.io/cp/manage/graphite/app-designer, repository does not exist or may require 'docker login': denied: You are not authorized to access this resource. See https://www.ibm.com/docs/en/cloud-paks/1.0?topic=clusters-managing-entitlements#FAQ. Could please someone help me with this issue? 

    Kind regards



    ------------------------------
    Vojtěch Šustek
    ------------------------------


  • 2.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:10 AM

    Hi Vojtech,

    If you are trying to download maf-tools image then please use this url:

    docker pull cp.icr.io/cp/manage/maf-tools:9.0.9-amd64

    All available maf-tools images can be found in this web page (see image number): 

    https://www.ibm.com/support/pages/configuring-and-customizing-ibm-maximo-mobile



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 3.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:15 AM

    Hi Bartosz,

    Thank you for the answer! When I tried to do it as you posted then it shows me this: docker pull cp.icr.io/cp/manage/maf-tools:9.0.9-amd64
    Error response from daemon: pull access denied for cp.icr.io/cp/manage/maf-tools, repository does not exist or may require 'docker login': denied: You are not authorized to access this resource. See https://www.ibm.com/docs/en/cloud-paks/1.0?topic=clusters-managing-entitlements#FAQ

    So I'm still not able to make it work.



    ------------------------------
    Vojtěch Šustek
    ------------------------------



  • 4.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:24 AM
    Edited by Bartosz Marchewka Thu May 08, 2025 06:24 AM

    I know that you wrote it but could you make sure that you are successfully logged in

    docker login cp.icr.io --username cp --password [EntitlementKey]

    Your private "Entitlement Key" can be generated in this page:

    https://myibm.ibm.com/products-services/containerlibrary



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 5.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:39 AM

    I have tried to log in with my old entiltement key, but it didn't work. Right now I have used the right one and It's running. Thank you! 



    ------------------------------
    Vojtěch Šustek
    ------------------------------



  • 6.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:57 AM

    Great Vojtěch. In the official IBM documentation that you can find using this url Downloading the Docker container image there is also information how to download maf-tools image from IBM® Open Registry as well.



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 7.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 06:48 AM

    I have just one more problem. 

    When I log into my MAF tools, it writes me this: 

    System message

    NetworkError when attempting to fetch resource.
    What could be the issue?


    ------------------------------
    Vojtěch Šustek
    ------------------------------



  • 8.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 07:01 AM

    Can you share please the log from docker/podman?



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 9.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 07:07 AM

    Sure, there it is: 

    [2025-05-08T11:02:02.831Z] INFO: server/29 on 91745b097c7c: received a get request to get applications (req_id=21112b24-ccbf-46bd-adee-6531fe61e539)

    [2025-05-08T11:02:02.831Z] INFO: server/29 on 91745b097c7c: Find the User ID from the request (req_id=21112b24-ccbf-46bd-adee-6531fe61e539)
    at Object.unauthorized (/graphite/node_modules/garage-utils/lib/errors.js:36:5)

    at buildUnauthorizedError (/graphite/packages/config-server/src/serverAPI.js:54:508)

    at /graphite/packages/config-server/src/serverAPI.js:44:1012

    at Layer.handle [as handle_request] (/graphite/node_modules/express/lib/router/layer.js:95:5)

    at next (/graphite/node_modules/express/lib/router/route.js:149:13)

    at Route.dispatch (/graphite/node_modules/express/lib/router/route.js:119:3)

    at Layer.handle [as handle_request] (/graphite/node_modules/express/lib/router/layer.js:95:5)

    at /graphite/node_modules/express/lib/router/index.js:284:15

    at Function.process_params (/graphite/node_modules/express/lib/router/index.js:346:12)

    at next (/graphite/node_modules/express/lib/router/index.js:280:10)

    [2025-05-08T11:02:07.962Z] INFO: server/29 on 91745b097c7c: received a get request to auth the user (req_id=77b343d2-f8b3-4596-906d-48f698c356e4)

    [2025-05-08T11:02:07.962Z] INFO: server/29 on 91745b097c7c: whoami is called (req_id=77b343d2-f8b3-4596-906d-48f698c356e4)

    (node:29) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.

    (Use `node --trace-warnings ...` to show where the warning was created)

    [2025-05-08T11:02:08.094Z] INFO: server/29 on 91745b097c7c: responding the result (req_id=77b343d2-f8b3-4596-906d-48f698c356e4)

    /graphite/packages/config-server/src/BaseService.js:126

    }`;if(this.credentialDetails=JSON.parse(credentialDetails),"apikey"===this.getAuthParamKey())fs.appendFile(fileDir,credentialDetails,function(err){if(err)throw err;logger.info(`Created credentials.json file in ${wkdir}.`)});else if("access-token"===this.getAuthParamKey()){fs.appendFileSync(fileDir,credentialDetails),logger.info(`Created credentials.json file in ${wkdir}.`);const userWkDir=getWorkSpaceDir(userId);fs.existsSync(userWkDir)&&(fs.copyFileSync(fileDir,`${userWkDir}/credentials.json`),logger.info(`${wkdir}/credentials.json was copied to ${userWkDir}`),fs.readdirSync(userWkDir,{withFileTypes:!0}).filter(function(subDir){const appDir=`${userWkDir}/${subDir.name}`;if(subDir.isDirectory()){const appCredfile=`${appDir}/credentials.json`;if(fs.existsSync(appCredfile))return fs.unlinkSync(appCredfile),logger.info(`Remove the existing credentials.json file from ${appCredfile} when logging in.`),fs.copyFileSync(fileDir,appCredfile),!0}return!1}))}}/**
    [Error: EACCES: permission denied, open '../../.workspace/credentials.json'] {

    errno: -13,

    code: 'EACCES',

    syscall: 'open',

    path: '../../.workspace/credentials.json'

    }
    Node.js v20.16.0
    Done in 8.10s.
    \


    ------------------------------
    Vojtěch Šustek
    ------------------------------



  • 10.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 07:27 AM

    A the first glance it looks like issue with permissions to folder/files: [Error: EACCES: permission denied, open '../../.workspace/credentials.json']

    Could you double check if you started docker container with this parameter: --privileged

    More information you can find in this IBM documentation: Running Docker Image 



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 11.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 07:37 AM

    Yes, I did run it with --privileged parameter. Last time I've ran Docker with the same settings everything went fine. So I don't really know, where is the issue. Still thank you! 



    ------------------------------
    Vojtěch Šustek
    ------------------------------



  • 12.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 07:45 AM

    Please review these two weburls:

    1. Docker run command results in Error: EACCES: permission denied, open '../../.workspace/credentials.json'
    2. Problem getting MAF development up and running


    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 13.  RE: Can't pull Docker Image

    Posted Thu May 08, 2025 08:21 AM

    Thank you so much! I've finally made it work. Have a nice day!

    Kind regards



    ------------------------------
    Vojtěch Šustek
    ------------------------------