Skip to content

Container Registry

Note: the DESY password will not work when using the command line. You have to use the CLI secret, which can be found at tollerort under your users name User Profile.

Build & Push image with docker

# login to the container registry:
docker login -u my-user-name tollerort.desy.de

# build an image 
docker build . --tag=dia-nn:1.8.1

# add a custom tag
docker tag dia-nn:1.8.1 tollerort.desy.de/maxsoft/dia-nn:1.8.1 

# push the image
docker push tollerort.desy.de/maxsoft/dia-nn:1.8.1 

# run it using singularity
singularity run docker://tollerort.desy.de/maxsoft/dia-nn:1.8.1

Build and push image with singularity

# login to registry
singularity remote login -u my-user-name docker://tollerort.desy.de

# build image
fakeroot singularity build minimamba.sif miniconda.def

# push image
singularity push /home/user/my.sif oras://tollerort.desy.de/test101/minimamba:0.1

# pull/run image
singularity pull $PWD/minimamba.sif oras://tollerort.desy.de/test101/minimamba:0.1
singularity run oras://tollerort.desy.de/test101/minimamba:0.1

Convert Docker to Singularity and upload to registry

# prepare
export SINGULARITY_TMPDIR=/data/dust/user/$USER/stmp
export SINGULARITY_CACHEDIR=/data/dust/user/$USER/scache
singularity remote login -u my-user-name docker://tollerort.desy.de

# pull the docker image and save to file
singularity pull vitis-ai.sif docker://tollerort.desy.de/maxsoft/vitis-ai-tensorflow2-gpu:3.0.0

# push the singularity image 
singularity push $PWD/vitis-ai.sif oras://tollerort.desy.de/maxsoft/vitis-ai-tensorflow2-gpu-sif:3.0.0