Access error log during docker build

I’am building docker images for multiple platforms via docker/build-push-action.

Also in place are other actions in that workflow:


The build runs often into an error:

#36 1377.3 npm ERR! This is an error with npm itself. Please report this error at:
#36 1377.3 npm ERR! /root/.npm/_logs/2021-12-30T21_26_39_412Z-debug-0.log

I tried serval things to access /root but i have no idea how i can get that log.
Building the image localy dosn’t cause that error, so i am a littebit lost how to troubleshoot this.