본문 바로가기

리눅스

[리눅스] GitLab 컨테이너 레지스트리 사용하기

728x90

GitLab 컨테이너 레지스트리 사용하기

docker login

 docker login registry.binddns.com

$ docker login registry.binddns.com
Username: binddns
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

docker build

$ docker build -t registry.binddns.com/playground/docker-images .

docker images

$ docker images
REPOSITORY                                     TAG       IMAGE ID       CREATED         SIZE
gitlab/gitlab-ce                               latest    7b8db4329c1c   25 hours ago    2.31GB
certbot/certbot                                latest    7dca0a9c8066   5 weeks ago     108MB

docker tag

docker tag certbot/certbot:latest registry.binddns.com/playground/docker-images:latest

$ docker tag certbot/certbot:latest registry.binddns.com/playground/docker-images:latest
$ docker images
REPOSITORY                                     TAG       IMAGE ID       CREATED         SIZE
gitlab/gitlab-ce                               latest    7b8db4329c1c   25 hours ago    2.31GB
certbot/certbot                                latest    7dca0a9c8066   5 weeks ago     108MB
registry.binddns.com/playground/docker-images  latest    7dca0a9c8066   5 weeks ago     108MB

docker push

 docker push registry.binddns.com/playground/docker-images

$ docker push registry.binddns.com/playground/docker-images
Using default tag: latest
The push refers to repository [registry.binddns.com/playground/docker-images]
263c92c8b7ad: Pushed
6ae4b14bebca: Pushed
4bb2249b073f: Pushed
a32f4fcc7545: Pushed
fa20ef29e396: Pushed
4558d4a1e7b7: Pushed
5adf6a2adcff: Pushed
b12aaecf5b11: Pushed
5d7294785f65: Pushed
3661f107c2a7: Pushed
52a9e72954d8: Pushed
b36a03007bb7: Pushed
32f366d666a5: Pushed
latest: digest: sha256:5418f32c7b23d8d370911282d5643962cb7895638a4d161d824ead31e43141f8 size: 3047

728x90