#4 Gitlab Container Registry Tutorial | Docker push

Опубликовано: 27 Апрель 2026
на канале: Tech With Foyzur
5,791
52

#Gitlab #GitlabContainerRegistry #techwithfoyzur

You can support me here 🙏
https://buymeacoffee.com/techwithfoyzur

ℹ️ I will show you how to use the GitLab container registry aka GitLab registry. We are going to use docker in GitLab. GitLab Container Registry is a secure and private registry for Docker images. The GitLab set of tools includes a container registry. It is a hosted registry built with open source tools that are secure and private. It can host OCI-compatible images and provides a fully-featured integration with GitLab. This allows users to manage all their GitLab DevOps tooling in one space. It is available in their free tier.

▶️Timestamps ◀️

00:00 Intro and Overview
03:15 Dockerhub
03:30 Pull nginx docker image from dockerhub
03:37 Docker run nginx container
05:48 gitlab.com and container registry
06:06 How to tag a docker image
09:10 How to write a commit message for a docker image
10:22 Docker push
13:14 Docker images
15:23 Docker pull
16:57 How to generate a Gitlab Personal Access Token


► Gitlab Container Registry Part 2
   • #5 Gitlab Container Registry | Gitlab Regi...  

► Gitlab Quick Actions
   • #6 Gitlab Quick Actions | Gitlab Tutorial ...  

► Useful commands

1. docker pull an image
docker pull nginx

2. docker tag an image
docker tag source_image target image
docker tag nginx registry.gitlab.com/youtube27/git-gitlab-tutorial/nginx:latest

3. docker login
docker login hostname -u username

4. docker commit

docker commit -m "Nginx image taken from dockerhub" 5b0a471cf596 registry.gitlab.com/youtube27/git-gitlab-tutorial/nginx:latest

5. docker push an image

docker push image_tag
docker push registry.gitlab.com/youtube27/git-gitlab-tutorial/nginx:latest

6. We will pull the images we just pushed

docker pull registry.gitlab.com/youtube27/git-gitlab-tutorial/nginx
docker rmi imageid
docker images

7. Check the image history (tells you about each layer)

docker image history IMAGENAME/HASH
docker image historyd3501731e65c