User Tools

Site Tools


технология_docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
технология_docker [2022/07/06 10:04]
val [Создание контейнера для приложения с использованием Dockerfile]
технология_docker [2022/07/06 10:05]
val
Line 300: Line 300:
 # docker volume rm root_vol1 # docker volume rm root_vol1
 </​code>​ </​code>​
-===== Дополнительные материалы ===== 
  
-==== Локальный репозиторий ==== +===== Репозиторий =====
- +
- * [[https://​docs.docker.com/​registry/​|Docker Registry]] +
- +
-<​code>​ +
-gate# docker run -d -p 5000:5000 -v /​root:/​certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/​certs/​gate.crt -e REGISTRY_HTTP_TLS_KEY=/​certs/​gate.key --name registry registry:​2 +
- +
-node1# cp ~vagrant/​gate.crt /​etc/​docker/​certs.d/​gate.corp13.un\:​5000/​ca.crt +
- +
-node1# service docker restart +
- +
-node1# docker tag val/​webd:​latest gate.corp13.un:​5000/​webd +
- +
-node1# docker push gate.corp13.un:​5000/​webd +
- +
-node1# curl --insecure -X GET https://​gate.corp13.un:​5000/​v2/​_catalog +
-{"​repositories":​["​webd"​]} +
-</​code>​+
  
 ==== GitLab репозиторий ==== ==== GitLab репозиторий ====
Line 345: Line 327:
 ... ...
 # docker run --name webd01 --hostname webd01 -itd -p 8000:80 server.corp13.un:​5000/​student/​webd:​wwwdir # docker run --name webd01 --hostname webd01 -itd -p 8000:80 server.corp13.un:​5000/​student/​webd:​wwwdir
 +</​code>​
 +
 +==== Локальный репозиторий ====
 +
 + * [[https://​docs.docker.com/​registry/​|Docker Registry]]
 +
 +<​code>​
 +gate# docker run -d -p 5000:5000 -v /​root:/​certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/​certs/​gate.crt -e REGISTRY_HTTP_TLS_KEY=/​certs/​gate.key --name registry registry:2
 +
 +node1# cp ~vagrant/​gate.crt /​etc/​docker/​certs.d/​gate.corp13.un\:​5000/​ca.crt
 +
 +node1# service docker restart
 +
 +node1# docker tag val/​webd:​latest gate.corp13.un:​5000/​webd
 +
 +node1# docker push gate.corp13.un:​5000/​webd
 +
 +node1# curl --insecure -X GET https://​gate.corp13.un:​5000/​v2/​_catalog
 +{"​repositories":​["​webd"​]}
 </​code>​ </​code>​
  
технология_docker.txt · Last modified: 2024/05/01 17:02 by val