ch-builder2tar permission denied #1132
Replies: 4 comments 10 replies
-
Hello David, thanks for the question. Charliecloud scripts aren't designed to be run under sudo; if they need sudo, e.g. to run Docker, they add it for the specific commands needed. I think what is happening here is that the tarball is being exported as root (because of sudo) but then accessed as yourself. Does it work as |
Beta Was this translation helpful? Give feedback.
-
Thanks Reid, I tried without sudo and got the following error :
|
Beta Was this translation helpful? Give feedback.
-
Are you able to export a tarball manually from Docker? The commands would be something like:
That said, it seems to be failing when appending the environment file to the tarball. Stand by. |
Beta Was this translation helpful? Give feedback.
-
This makes me suspect your tar doesn't support your UID:
Can you try this and copy-paste the transcript here?
|
Beta Was this translation helpful? Give feedback.
-
I am having an issue running the ch-builder2tar command :
sudo ch-builder2tar qxcontexts .
[sudo] password for di72giz:
builder: docker
exporting
/X86/bin/ch-builder2tar: line 151: ./qxcontexts.tar: Permission denied
I have sudo access on the system and successfully built the docker image from the dockerfile with the command :
sudo docker build -t image .
Could it be a system setup issue? As I can contact the sysadmin to make changes.
David
Beta Was this translation helpful? Give feedback.
All reactions