Move Docker image to Gitlab Container Registry

I have an image hosted on docker hub. I want to move it to Gitlab Container Registry and then use it in my ci pipeline. Is there any documentation available around this? I have looked online but this particular use case is not discussed.

You need to download the image locally, then tag it with your target name. Login to the Gitlab Registry, and push it.

Something like:

docker pull alpine
docker tag alpine registry.gitlab.com/my-group/my-project/alpine
docker push registry.gitlab.com/my-group/my-project/alpine

Thank you for your response @rpadovani ! It worked.

1 Like