본문 바로가기

docker 마이크로서비스

docker EE DTR 설치

1. Docker EE 설치

- 이전 버젼 삭제 및 환경 설정은 docker 공식 홈페이지 참조

$ sudo yum -y install docker-ee

2. UCP 설치

# Pull the latest version of UCP
$ docker image pull docker/ucp:2.2.3

 

UCP 사용 port 방화벽에 등록

출처 : (http://docs.docker.oeynet.com/datacenter/ucp/2.2/guides/admin/install/system-requirements/#ports-used) 공식 홈페이지 UCP requirement

...

$ firewall-cmd --zone=public --permanent --add-port=12376/tcp
$ firewall-cmd --zone=public --permanent --add-port=12379/tcp
$ firewall-cmd --zone=public --permanent --add-port=12380/tcp
....
# Install UCP
$ docker container run --rm -it --name ucp \
  -v /var/run/docker.sock:/var/run/docker.sock \
  docker/ucp:2.2.3 install \
  --host-address <node-ip-address> \
  --interactive

- <node-ip-address> : UCP를 설치할 매니저 노드의 IP or domain

설치중 사용자 정보 입력

INFO[0047] adminusername :  <docker ee 라이센스 가진 유저명>
INFO[0047] password : 

INFO[0012] Establishing mutual Cluster Root CA with Swarm
INFO[0012] Installing UCP with host address xxx.xxx.xxx.xxx - If this is incorrect, please specify an alternative address with the '--host-address' flag
INFO[0012] Generating UCP Client Root CA
INFO[0012] Deploying UCP Service
INFO[0047] Installation completed on violation-svr (node ksi2cnidktt6772hl3jwxcubt)
INFO[0047] UCP Instance ID: qyac746ymaqp3kc2feow3a5r8
INFO[0047] UCP Server SSL: SHA-256 Fingerprint=F9:4B:FE:73:0E:21:34:1A:E4:89:F6:EB:1A:1E:2C:14:23:95:87:3B:81:67:9C:B6:52:AA:7A:A6:BD:9C:FF:79
INFO[0047] Login to UCP at https://<node-ip-address>:443
INFO[0047] Username: adminuser
INFO[0047] Password: (your admin password)

3. UCP GUI 접속확인 (https://<node-ip-address>:443 지정한 주소로 접속) 

https://<node-ip-address>:443

4. UCP node 이름 확인

UCP node name : violation-svr

 

5. DTR 설치

# Pull the latest version of DTR
$ docker pull docker/dtr:2.3.3

# Install DTR
$ docker run -ti --rm \
 docker/dtr:2.3.3 install \
 --ucp-node violation-svr \
 --replica-https-port 8443 \
 --ucp-insecure-tls

공식 홈페이지에는 없는 옵션 --replica-https-port 을 추가 해줘야 한다.  

기본 port 443을 UCP 에서 사용하기 때문에 포트 충돌이 일어남. 같은 서버에 구성시 문제 발생

 

DTR port USED

INFO[0000] Beginning Docker Trusted Registry installation
ucp-url (The UCP URL including domain and port): https://<node-ip-address>:443
ucp-username (The UCP administrator username): <ucp admin사용자 명>
ucp-password: <ucp admin password>

6. DTR GUI 접속 (https://<dtr설치IP>:8443)

7. Docker EE License 등록

UCP, DTR 모두 EE 라이센스가 필요하다. trial버젼이라도 해서 이미지 push를 해보려고 했으나 어디서 구매하는지 찾을 수가 없음. 라이센스에 관해선 자료 정리해서 수정 하겠습니다.

 

 

8. Install DTR offline

https://dker.ru/docs/docker-trusted-registry/installation/install-offline/