[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Another Docker/Conda/HTCondor permissions issue



Hi Greg. 
I'm always mounting  /etc/passwd from the host to the docker container. 

This way all the local users are in the containers as well. 

Thanks 
David 

Get Outlook for Android

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Greg Thain via HTCondor-users <htcondor-users@xxxxxxxxxxx>
Sent: Wednesday, June 25, 2025 9:00:20 PM
To: htcondor-users@xxxxxxxxxxx <htcondor-users@xxxxxxxxxxx>
Cc: Greg Thain <gthain@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Another Docker/Conda/HTCondor permissions issue
 
On 6/20/25 13:00, Fienen, Michael N via HTCondor-users wrote:

Hello HTCondor World

 

Now that Greg solved my Docker memory issue, I have one last problem to sort out. I’m creating a Docker instance from a Dockerfile with a Miniforge-made conda environment. However, I get errors not being able to find python when run through HTCondor. Here’s the relevant part of the Dockerfile – note the PATH.


Following up for the list at large, as we solved this off-list.

When HTCondor runs a docker universe job, it runs the job as the same unix user that we would for vanilla universe.  If the docker container is expecting to run a particular user, this is unlikely to be the same as HTCondor will select.  In this case, the HTCondor pool was configured to run all jobs as the "nobody" user, and the container was unhappy with that.  Adding this user to the container allowed it to run properly.

-greg