최초 image registry 구성

This commit is contained in:
정훈 변
2024-02-26 12:07:55 +09:00
parent 3fd554eee9
commit 0aa0497403
272 changed files with 806 additions and 8 deletions

View File

@@ -22,10 +22,10 @@
- name: Start Private Registry
ansible.builtin.shell: |
nerdctl run -d -p 0.0.0.0:5000:5000 --name exem-private-registry --restart always --privileged -v /tmp/images/data:/var/lib/registry -e REGISTRY_STORAGE_DELETE_ENABLED=true registry:2.8.2
nerdctl run -d -p 8888:8080 --name exem-registry-browser -e DOCKER_REGISTRY_URL=http://{{ hostvars[groups['all'][0]]['ip'] }}:5000 -e NO_SSL_VERIFICATION=true -e ENABLE_DELETE_IMAGES=true klausmeyer/docker-registry-browser
#nerdctl run -d -p 8888:8080 --name exem-registry-browser -e DOCKER_REGISTRY_URL=http://{{ hostvars[groups['all'][0]]['ip'] }}:5000 -e NO_SSL_VERIFICATION=true -e ENABLE_DELETE_IMAGES=true klausmeyer/docker-registry-browser
- debug:
msg: |
"Registry Address : {{ hostvars[groups['all'][0]]['ip'] }}:5000"
"TEST : curl {{ hostvars[groups['all'][0]]['ip'] }}:5000/v2/_catalog"
"Web UI : http://{{ hostvars[groups['all'][0]]['ip'] }}:8888"
"Web UI : http://{{ hostvars[groups['all'][0]]['ip'] }}:8888"