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

[HTCondor-users] Executable file not found error for docker universe job



Hi,

I have a simple docker image fm, and it can run successful when launching the image container locally. But when I use docker universe and send the image fm to HTCondor, the job is in Hold status. And the hold reason is "Error running docker job: [8] System error: exec: 'run_fm.pl': executable file not found in $PATH".

The perl script run_fm.pl can be run inside docker container successfully when launching container on the host, but why it cannot be found when sending the image to condor?

FYI, my Dockerfile is:

        ----------------------------------

        FROM centos:latest
        LABEL maintainer="xxx"
        RUN mkdir -p /home/user/working_dir
        COPY xxx...
ENV PATH ".:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ENV LD_LIBRARY_PATH "/usr/lib64:/usr/lib:/usr/local/lib:/usr/local/lib64"
        WORKDIR /home/user/working_dir
        RUN ...

                ...

        ENTRYPOINT ["run_fm.pl"]
        CMD ["/home/user/working_dir", "test.cfg", "test.log"]

        ---------------------------------

The submit file is:

        ---------------------------------

        Universe                        = docker
        docker_image               = fm
#        executable                     = ./run_fm.pl
# arguments = "/home/user/working_dir test_docker.cfg /test/test.log"
        log                                 = fm.sub.log
        output                          = fm.sub.out
        error                             = fm.sub.err
        initialdir                       = /my_initial_dir
        Request_cpus             = 1
        Request_disk              = 20000
        Request_memory      = 10000
        should_transfer_files = YES
        notification                  = Complete
        getenv                          = True
        queue                             1

        ---------------------------------

Thank you,

Zhuo