Difference between revisions of "Tutorials:Link to container registry on our server"
(Created page with "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...") |
m |
||
| Line 7: | Line 7: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | The registry is exposed on the standard port 5000. After this, you can pull images from the registry and upload your own. Test this out now: | + | The registry is exposed on the standard port 5000, and it will ask for your CCU username and password. After this, you can pull images from the registry and upload your own. Test this out now: |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Revision as of 22:28, 25 May 2019
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.
To check whether your login works and make the CCU registry known to your docker installation, simply run
docker login ccu.uni-konstanz.de:5000
The registry is exposed on the standard port 5000, and it will ask for your CCU username and password. After this, you can pull images from the registry and upload your own. Test this out now:
docker pull busybox
This will pull the simple example image busybox (a minimalistic Linux) from the default docker registry, the Docker hub, which has tons of useful base images for almost anything you might ever need.
In order to "rebrand" this example and publish it under your own account on the CCU registry, you need to tag it with a new name:
docker tag busybox ccu.uni-konstanz.de:5000/<your.username>/my_busybox
Note that you are only allowed to upload images in a subdirectory named after your login.
Finally, push the image to the CCU registry:
docker push ccu.uni-konstanz.de:5000/<your.username>/my_busybox
That's it. Everyone can now pull this image from the server and start it on any PC running docker which is logged into the CCU repository.
You can verify that your image has been uploaded successfully by browsing the CCU registry here and checking under your name.