Thank you so much! I've finally made it work. Have a nice day!
Original Message:
Sent: Thu May 08, 2025 07:45 AM
From: Bartosz Marchewka
Subject: Can't pull Docker Image
Please review these two weburls:
- Docker run command results in Error: EACCES: permission denied, open '../../.workspace/credentials.json'
- Problem getting MAF development up and running
------------------------------
Bartosz Marchewka
IBM Maximo Consultant
AFRY
Original Message:
Sent: Thu May 08, 2025 07:36 AM
From: Vojtěch Šustek
Subject: Can't pull Docker Image
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
Original Message:
Sent: Thu May 08, 2025 07:26 AM
From: Bartosz Marchewka
Subject: Can't pull Docker Image
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
Original Message:
Sent: Thu May 08, 2025 07:07 AM
From: Vojtěch Šustek
Subject: Can't pull Docker Image
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'] {
path: '../../.workspace/credentials.json'
------------------------------
Vojtěch Šustek
Original Message:
Sent: Thu May 08, 2025 07:01 AM
From: Bartosz Marchewka
Subject: Can't pull Docker Image
Can you share please the log from docker/podman?
------------------------------
Bartosz Marchewka
IBM Maximo Consultant
AFRY
Original Message:
Sent: Thu May 08, 2025 06:47 AM
From: Vojtěch Šustek
Subject: Can't pull Docker Image
I have just one more problem.
When I log into my MAF tools, it writes me this:
NetworkError when attempting to fetch resource.
What could be the issue?
------------------------------
Vojtěch Šustek
Original Message:
Sent: Thu May 08, 2025 06:23 AM
From: Bartosz Marchewka
Subject: Can't pull Docker Image
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
Original Message:
Sent: Thu May 08, 2025 06:14 AM
From: Vojtěch Šustek
Subject: Can't pull Docker Image
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
Original Message:
Sent: Thu May 08, 2025 06:09 AM
From: Bartosz Marchewka
Subject: Can't pull Docker Image
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
Original Message:
Sent: Thu May 08, 2025 05:54 AM
From: Vojtěch Šustek
Subject: Can't pull Docker Image
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
------------------------------