Skip to content

Commit 328a77c

Browse files
author
Jim Galasyn
committed
Port DTR install topics to template (#401)
1 parent 4b50fa2 commit 328a77c

File tree

7 files changed

+78
-24
lines changed

7 files changed

+78
-24
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ tablabels:
6262
ucp-3.0: Universal Control Plane 3.0
6363
ucp-2.2: Universal Control Plane 2.2
6464
dtr-2.5: Docker Trusted Registry 2.5
65+
dtr-2.4: Docker Trusted Registry 2.4
6566
docker-cli-linux: Docker CLI on Mac/Linux
6667
docker-cli-win: Docker CLI on Windows
6768
kubectl: Kubernetes CLI

_config_authoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ dtr_versions:
4848
- version: "2.4"
4949
path: /datacenter/dtr/2.4/guides/
5050
- version: "2.3"
51-
latest: true
5251
path: /datacenter/dtr/2.3/guides/
5352
- version: "2.2"
5453
path: /datacenter/dtr/2.2/guides/
@@ -62,6 +61,7 @@ tablabels:
6261
ucp-3.0: Universal Control Plane 3.0
6362
ucp-2.2: Universal Control Plane 2.2
6463
dtr-2.5: Docker Trusted Registry 2.5
64+
dtr-2.4: Docker Trusted Registry 2.4
6565
docker-cli-linux: Docker CLI on Mac/Linux
6666
docker-cli-win: Docker CLI on Windows
6767
kubectl: Kubernetes CLI

datacenter/dtr/2.5/guides/admin/install/index.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
title: Install Docker Trusted Registry
33
description: Learn how to install Docker Trusted Registry for production.
44
keywords: dtr, registry, install
5+
ui_tabs:
6+
- version: dtr-2.5
7+
orhigher: false
8+
- version: dtr-2.4
9+
orlower: true
10+
next_steps:
11+
- path: install-offline/
12+
title: Install DTR offline
13+
- path: ../upgrade/
14+
title: Upgrade DTR
515
---
16+
{% if include.version=="dtr-2.5" %}
617

718
Docker Trusted Registry (DTR) is a containerized application that runs on a
819
swarm managed by Docker Universal Control Plane (UCP). It can be installed
@@ -37,7 +48,7 @@ choose **Docker Trusted Registry**.
3748
After you configure all the options, you'll have a snippet that you can use
3849
to deploy DTR. It should look like this:
3950

40-
```none
51+
```bash
4152
# Pull the latest version of DTR
4253
$ docker pull {{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }}
4354

@@ -115,7 +126,7 @@ To add replicas to a DTR cluster, use the `docker/dtr join` command:
115126

116127
Then run:
117128

118-
```none
129+
```bash
119130
docker run -it --rm \
120131
{{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }} join \
121132
--ucp-node <ucp-node-name> \
@@ -130,7 +141,8 @@ To add replicas to a DTR cluster, use the `docker/dtr join` command:
130141

131142
![](../../images/install-dtr-6.png){: .with-border}
132143

133-
## See also
144+
{% elsif include.version=="dtr-2.4" %}
134145

135-
* [Install DTR offline](install-offline.md)
136-
* [Upgrade DTR](../upgrade.md)
146+
Learn about [installing Docker Trusted Registry](/datacenter/dtr/2.4/guides/admin/install/index.md).
147+
148+
{% endif %}

datacenter/dtr/2.5/guides/admin/install/install-offline.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ title: Install Docker Trusted Registry offline
33
description: Learn how to install Docker Trusted Registry on a machine with no internet
44
access.
55
keywords: registry, install, offline
6+
ui_tabs:
7+
- version: dtr-2.5
8+
orhigher: false
9+
- version: dtr-2.4
10+
orlower: true
11+
next_steps:
12+
- path: ../../architecture/
13+
title: DTR architecture
14+
- path: ../install/
15+
title: Install DTR
616
---
17+
{% if include.version=="dtr-2.5" %}
718

819
The procedure to install Docker Trusted Registry on a host is the same,
920
whether that host has access to the internet or not.
@@ -64,7 +75,8 @@ DTR makes outgoing connections to:
6475
All of these uses of online connections are optional. You can choose to
6576
disable or not use any or all of these features on the admin settings page.
6677

67-
## Where to go next
78+
{% elsif include.version=="dtr-2.4" %}
6879

69-
* [DTR architecture](../../architecture.md)
70-
* [Install DTR](index.md)
80+
Learn about [installing Docker Trusted Registry offline](/datacenter/dtr/2.4/guides/admin/install/install-offline.md).
81+
82+
{% endif %}

datacenter/dtr/2.5/guides/admin/install/system-requirements.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
title: Docker Trusted Registry system requirements
33
description: Learn about the system requirements for installing Docker Trusted Registry.
44
keywords: DTR, architecture, requirements
5+
ui_tabs:
6+
- version: dtr-2.5
7+
orlower: true
8+
next_steps:
9+
- path: ../../architecture/
10+
title: DTR architecture
11+
- path: ../install/
12+
title: Install DTR
513
---
14+
{% if include.version=="dtr-2.5" %}
615

716
Docker Trusted Registry can be installed on-premises or on the cloud.
817
Before installing, be sure your infrastructure has these requirements.
@@ -36,7 +45,4 @@ Docker Enterprise Edition is a software subscription that includes three product
3645

3746
[Learn more about the maintenance lifecycle for these products](http://success.docker.com/Get_Help/Compatibility_Matrix_and_Maintenance_Lifecycle).
3847

39-
## Where to go next
40-
41-
* [DTR architecture](../../architecture.md)
42-
* [Install DTR](index.md)
48+
{% endif %}

datacenter/dtr/2.5/guides/admin/install/uninstall.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@
22
title: Uninstall Docker Trusted Registry
33
description: Learn how to uninstall your Docker Trusted Registry installation.
44
keywords: dtr, install, uninstall
5+
ui_tabs:
6+
- version: dtr-2.5
7+
orhigher: false
8+
- version: dtr-2.4
9+
orlower: true
10+
next_steps:
11+
- path: ../configure/set-up-high-availability/
12+
title: Scale your deployment
13+
- path: ../install/
14+
title: Install DTR
515
---
16+
{% if include.version=="dtr-2.5" %}
617

718
Uninstalling DTR can be done by simply removing all data associated with each
819
replica. To do that, you just run the destroy command once per replica:
920

10-
```none
21+
```bash
1122
docker run -it --rm \
1223
docker/dtr:{{ page.dtr_version }} destroy \
1324
--ucp-insecure-tls
@@ -19,7 +30,8 @@ destroy.
1930
To see what options are available in the destroy command, check the
2031
[destroy command reference documentation](/reference/dtr/2.5/cli/destroy.md).
2132

22-
## Where to go next
33+
{% elsif include.version=="dtr-2.4" %}
2334

24-
* [Scale your deployment](../configure/set-up-high-availability.md)
25-
* [Install DTR](index.md)
35+
Learn about [uninstalling Docker Trusted Registry](/datacenter/dtr/2.4/guides/admin/install/uninstall.md).
36+
37+
{% endif %}

datacenter/dtr/2.5/guides/admin/upgrade.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22
title: Upgrade DTR
33
description: Learn how to upgrade your Docker Trusted Registry
44
keywords: dtr, upgrade, install
5+
ui_tabs:
6+
- version: dtr-2.5
7+
orhigher: false
8+
- version: dtr-2.4
9+
orlower: true
10+
next_steps:
11+
- path: ../release-notes/
12+
title: Release notes
513
---
14+
{% if include.version=="dtr-2.5" %}
615

7-
{% assign previous_version="2.3" %}
16+
{% assign previous_version="2.4" %}
817

918
DTR uses [semantic versioning](http://semver.org/) and we aim to achieve specific
1019
guarantees while upgrading between versions. We never support downgrading. We
@@ -54,8 +63,8 @@ Make sure you're running DTR {{ previous_version }}. If that's not the case,
5463

5564
Then pull the latest version of DTR:
5665

57-
```none
58-
$ docker pull {{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }}
66+
```bash
67+
docker pull {{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }}
5968
```
6069

6170
If the node you're upgrading doesn't have access to the internet, you can
@@ -65,8 +74,8 @@ to get the images.
6574
Once you have the latest image on your machine (and the images on the target
6675
nodes if upgrading offline), run the upgrade command:
6776

68-
```none
69-
$ docker run -it --rm \
77+
```bash
78+
docker run -it --rm \
7079
{{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }} upgrade \
7180
--ucp-insecure-tls
7281
```
@@ -85,6 +94,8 @@ command and it will resume from where it left off.
8594
A patch upgrade changes only the DTR containers and it's always safer than a minor
8695
upgrade. The command is the same as for a minor upgrade.
8796

88-
## Where to go next
97+
{% elsif include.version=="dtr-2.4" %}
8998

90-
* [Release notes](../release-notes.md)
99+
Learn about [upgrading Docker Trusted Registry](/datacenter/dtr/2.4/guides/admin/upgrade.md).
100+
101+
{% endif %}

0 commit comments

Comments
 (0)