Part 1
Docker CS Engine
Universal Control Plane
Part 2
Docker Trusted Registry
curl -slf http://pacakages.docker.com/1.12/install .sh | sh
docker run --rm -it --name ucp\
-v /var/run/docker.sock:/var/run/docker .sock \
docker/ucp:2.0 install \
--san my-up.azure.com
docker swarm join \
--token SWMTKN-1-412tc3cz88h0tgsmtpsh6q256...\
10.0.0.4:2377
docker run -it --rm docker/dtr install \
--dtr-external-url http://my-dtr.azure.com \
--ucp-node ddc -dtr1 \
--ucp-insecure-tls \
--ucp-url http://my-ucp.azure.com \
--ucp-username admin
curl -k http://my-dtr.azure.com/ca/ \
-ol /usr/local/share/certificate/my-dtr.azure.com.crt
sudo update-certificates
sudo service docker restart
Pushing and pulling images
Rinning DTR images in UCP
Signing images with Content Trust
latest: Pulling from library/ubuntu
af49a5ceb2a5: Pull complete
8f9757b472e7: Pull complete
e931b117db38: Pull complete
Digest: sha256:3b64c309deae7ab0f7dbdd42b6b326261ccd6261d...
Configuring shared storage
Adding replica nodes
dockerrun -it --rmdocker/dtrjoin \
--ucp-urlhttps://my-ucp.azure.com \
--ucp-node ddc-dtr-2 \
--existing-replica-id 395560f691f8 \
--ucp-username ddcadmin\
--ucp-ca "$(cat ucp-ca.pem)"
dockerrun -it --rmdocker/dtrbackup \
--ucp-urlhttps://my-ucp.azure.com \
--existing-replica-id 395560f691f8 \
--ucp-username ddcadmin\
--ucp-ca "$(cat ucp-ca.pem)" > backup.tar
dockerrun -it --rmdocker/dtrrestore \
--dtr-external-urlhttps://my-dtr.azure.com \
--ucp-node ddc-dtr3 \
--ucp-insecure-tls\
--ucp-urlhttps://my-ucp.azure.com \
--ucp-username admin < backup.tar
Pushing and pulling images
Running UCP services from DTR images
> dockerbuild -t my-ucp.azure.com/elton/docker-demo .
> dockerlogin my-ucp.azure.com
Username: elton
Password:
Login Succeeded
> dockerpush my-ucp.azure.com/elton/docker-demo
Creating organizations and repositories
Managing teams and users
Configuring team repository access
Configuring a DTR repository in Notary
Signing Docker images
Requiring trusted images in UCP
Running and scaling services
Running distributed applications
Managing node maintenance
Adding controller nodes
Configuring Universal Control Plane
dockerswarm join \
--token SWMTKN-1-4l2tc3cz88h0tefygewytufgv6q256... \
10.0.0.4:2377
Creating a service from a DTR image
Scaling up the service
Deploying from Docker Compose
Managing application containers
Adding worker nodes
Scaling services
Removing worker nodes