indigo-dc / udocker

A basic user tool to execute simple docker containers in batch or interactive systems without root privileges.
https://indigo-dc.github.io/udocker/
Apache License 2.0
1.32k stars 133 forks source link

config udocker output is not working #405

Closed Wanli-HE closed 7 months ago

Wanli-HE commented 9 months ago

HI!

the default ouput of udcoker is in ".udocker", so i am trying to config it to other folder, but it seems not works, i intall udocker by pip, and copy the udocker.conf to the folder ".udocker", and config it like blow, """[DEFAULT]

Verbosity level according to udocker Msg

verbose_level = 3

topdir = "/home/projects/udocker/" bindir = "/home/projects/udocker/bin" libdir = "/home/projects/udocker/lib" reposdir = "/home/projects/udocker/reposdir" layersdir = "/home/projects/udocker/layersdir" containersdir = "/home/projects/udocker/containersdir"

dockerio_index_url = https://hub.docker.com dockerio_registry_url = https://registry-1.docker.io

tarball_release = 1.2.8

tarball =

tmpdir = /tmp keystore = keystore

use_curl_exec =

default_execution_mode = P1

http_proxy =

"""

but actually the images were not download in the aims folder, and also not in ",udocker" folder,

di you have any suggestion on that?

best, wanli

jorge-lip commented 9 months ago

Please remove the quotes as below or use the environment variables like UDOCKER_DIR

topdir = /home/projects/udocker/ bindir = /home/projects/udocker/bin libdir = /home/projects/udocker/lib reposdir = /home/projects/udocker/reposdir layersdir = /home/projects/udocker/layersdir containersdir = /home/projects/udocker/containersdir

mariojmdavid commented 7 months ago

besides @jorge-lip comment above if you have your udocker.conf file in /home/projects/udocker.conf you should invoke udocker the following way to use the conf file

udocker --config=/home/projects/udocker.conf