Changes

Jump to navigation Jump to search
no edit summary
With the CCU login, you can also access the docker registry on our server. You need this in order to distribute your containers (program code) to the GPU cluster. Think about a registry as a globally available collection of program containers, which can be accessed by everyone in the CCU. You can for example freely pull any container which was created by someone else, make modifications to it, and republish it in your own account. Since a container brings all its dependencies with it, it is guaranteed to run on every system. Thus, you never need to think about for example which drivers or CUDA version is actually installed on a cluster node.
 
=== Pushing images to the CCU registry ===
To check whether your login works and make the CCU registry known to your docker installation, simply run
<syntaxhighlight lang="bash">
docker login ccu-k8s.inf.uni-konstanz.de:500032250
</syntaxhighlight>
The registry is exposed on the standard port 500032250, and it will ask for your CCU username and password. After this, you can pull will be able to push your own images from to the registry and upload your own. '''Note''': there have been three reports so far with problems during login, where the server reports a timeout while connecting. We are still investigating this issue. For some, it was fixed after logging into the university VPN, but this should in theory not be necessary.
==== Example on how to push a specific image ====
Test the successful connection out now:
<syntaxhighlight lang="bash">
docker tag busybox ccu-k8s.inf.uni-konstanz.de:500032250/<your.username>/my_busybox
</syntaxhighlight>
<syntaxhighlight lang="bash">
docker push ccu-k8s.inf.uni-konstanz.de:500032250/<your.username>/my_busybox</syntaxhighlight> === Pulling images into the GPU cluster === To be able to use your customized image in our GPU cluster, first you have to verify that you have a ''secret'' configured to the CCU repository. After establishing the login with docker, you should have config.json file created in your docker directory, in an Ubuntu installation: <syntaxhighlight lang="bash">/home/<Your_Ubuntu_Username>/.docker/config.json
</syntaxhighlight>
That's itIn order to create a secret using your login information, type: <syntaxhighlight lang="bash">kubectl create secret generic <A_Name_For_Your_Secret> --from-file=.dockerconfigjson=/home/<Your_Ubuntu_Username>/. Everyone can now pull this image from the server and start it on any PC running docker which is logged into the CCU repository/config.json --type=kubernetes.io/dockerconfigjson</syntaxhighlight>
'''TODO: the following is not working yet.'''You can verify that your image has been uploaded successfully check it succeeded by [httprunning<syntaxhighlight lang="bash">kubectl get secretsNAME TYPE DATA AGE<A_Name_For_Your_Secret> kubernetes.io/dockerconfigjson 1 17d</ccu.uni-konstanz.de:8001 browsing the CCU registry here] and checking under your name.syntaxhighlight>
ccu
14
edits

Navigation menu