How to use the BIC's private Docker registry

The BIC provides a private (local) Docker Registry that researchers and students can access. This Docker Registry lets you store and distribute Docker images.

The BIC Docker Registry is available at:

https://docker.bic.mni.mcgill.ca

Log in to the Docker Registry:

Before performing any action with the registry you’ll have to log in:

$ docker login https://docker.bic.mni.mcgill.ca

You’ll have to provide your McGill email and password as login credentials.

Publishing to the Docker Registry:

You can push to the registry any Docker image that you have created.

Push the image to the registry:

$ docker push docker.bic.mni.mcgill.ca/image_name

Pulling an image from the Docker Registry:

Use the following command to pull the image from the registry:

$ docker pull docker.bic.mni.mcgill.ca/image_name

Docker will download the image and return you to the prompt.

Listing images from the Docker Registry:

In order to list the existing images in the registry you can open a browser with the following URL:
https://docker.bic.mni.mcgill.ca/v2/_catalog

Also you can use curl via command line (this will require you to provide your McGill username and password).

curl -ntlm -u user@mcgill.ca -X GET https://docker.bic.mni.mcgill.ca/v2/_catalog