Skip to content

Commit 3d5adec

Browse files
Merge pull request docker#7713 from docker/backport-fixes
Remove redundant API and CLI directories
2 parents ca55b0c + 85c00d7 commit 3d5adec

File tree

109 files changed

+315
-71817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+315
-71817
lines changed

datacenter/dtr/2.5/reference/api/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacenter/dtr/2.5/reference/cli/backup.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,38 @@ docker run -i --rm docker/dtr \
1616
## Description
1717

1818

19-
This command creates a tar file with the contents of the volumes used by
20-
DTR, and prints it. You can then use the 'restore' command to restore the data
21-
from an existing backup.
19+
This command creates a `tar` file with the contents of the volumes used by
20+
DTR, and prints it. You can then use `docker/dtr restore` to restore the data
21+
from an existing backup.
2222

2323
Note:
2424

2525
* This command only creates backups of configurations, and image metadata.
26-
It doesn't backup users and organizations. Users and organizations can be
27-
backed up when performing a UCP backup.
26+
It does not back up users and organizations. Users and organizations can be
27+
backed up during a UCP backup.
2828

29-
It also doesn't backup the Docker images stored in your registry.
29+
It also doesn't back up Docker images stored in your registry.
3030
You should implement a separate backup policy for the Docker images stored
31-
in your registry, taking in consideration whether your DTR installation is
32-
configured to store images on the filesystem or using a cloud provider.
31+
in your registry, taking into consideration whether your DTR installation is
32+
configured to store images on the filesystem or is using a cloud provider.
3333

3434
* This backup contains sensitive information and should be
3535
stored securely.
3636

37+
* Using the `--offline-backup` flag temporarily shuts down the RethinkDB container.
38+
Take the replica out of your load balancer to avoid downtime.
39+
3740

3841
## Options
3942

4043
| Option | Environment Variable | Description |
4144
|:------------------------------|:--------------------------|:-------------------------------------------------------------------------------------|
4245
| `--debug` | $DEBUG | Enable debug mode for additional logs. |
43-
| `--existing-replica-id` | $DTR_REPLICA_ID | The ID of an existing DTR replica.To add, remove or modify DTR, you must connect to an existing healthy replica's database.. |
46+
| `--existing-replica-id` | $DTR_REPLICA_ID | The ID of an existing DTR replica. To add, remove or modify a DTR replica, you must connect to an existing healthy replica's database. |
4447
| `--help-extended` | $DTR_EXTENDED_HELP | Display extended help text for a given command. |
45-
| `--ucp-ca` | $UCP_CA | Use a PEM-encoded TLS CA certificate for UCP.Download the UCP TLS CA certificate from https://<ucp-url>/ca, and use --ucp-ca "$(cat ca.pem)". |
46-
| `--ucp-insecure-tls` | $UCP_INSECURE_TLS | Disable TLS verification for UCP.The installation uses TLS but always trusts the TLS certificate used by UCP, which can lead to man-in-the-middle attacks. For production deployments, use --ucp-ca "$(cat ca.pem)" instead. |
48+
| `--offline-backup` | $DTR_OFFLINE_BACKUP | This flag takes RethinkDB down during backup and takes a more reliable backup. If you back up DTR with this flag, RethinkDB will go down during backup. However, offline backups are guaranteed to be more consistent than online backups. |
49+
| `--ucp-ca` | $UCP_CA | Use a PEM-encoded TLS CA certificate for UCP. Download the UCP TLS CA certificate from `https://<ucp-url>/ca`, and use `--ucp-ca "$(cat ca.pem)"`. |
50+
| `--ucp-insecure-tls` | $UCP_INSECURE_TLS | Disable TLS verification for UCP. The installation uses TLS but always trusts the TLS certificate used by UCP, which can lead to MITM (man-in-the-middle) attacks. For production deployments, use `--ucp-ca "$(cat ca.pem)"` instead. |
4751
| `--ucp-password` | $UCP_PASSWORD | The UCP administrator password. |
4852
| `--ucp-url` | $UCP_URL | The UCP URL including domain and port. |
4953
| `--ucp-username` | $UCP_USERNAME | The UCP administrator username. |

reference/dtr/2.5/cli/emergency-repair.md renamed to datacenter/dtr/2.5/reference/cli/emergency-repair.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ There are three steps you can take to recover an unhealthy DTR cluster:
2626
2. If the majority of replicas are unhealthy, use this command to revert your
2727
cluster to a single DTR replica.
2828
3. If you can't repair your cluster to a single replica, you'll have to
29-
restore from an existing backup, using the 'restore' command.
29+
restore from an existing backup, using the `restore` command.
3030

3131
When you run this command, a DTR replica of your choice is repaired and
3232
turned into the only replica in the whole DTR cluster.
3333
The containers for all the other DTR replicas are stopped and removed. When
34-
using the 'force' option, the volumes for these replicas are also deleted.
34+
using the `force` option, the volumes for these replicas are also deleted.
3535

36-
After repairing the cluster, you should use the 'join' command to add more
36+
After repairing the cluster, you should use the `join` command to add more
3737
DTR replicas for high availability.
3838

3939

@@ -42,12 +42,12 @@ DTR replicas for high availability.
4242
| Option | Environment Variable | Description |
4343
|:------------------------------|:--------------------------|:-------------------------------------------------------------------------------------|
4444
| `--debug` | $DEBUG | Enable debug mode for additional logs. |
45-
| `--existing-replica-id` | $DTR_REPLICA_ID | The ID of an existing DTR replica.To add, remove or modify DTR, you must connect to an existing healthy replica's database.. |
45+
| `--existing-replica-id` | $DTR_REPLICA_ID | The ID of an existing DTR replica. To add, remove or modify DTR, you must connect to an existing healthy replica's database. |
4646
| `--help-extended` | $DTR_EXTENDED_HELP | Display extended help text for a given command. |
47-
| `--overlay-subnet` | $DTR_OVERLAY_SUBNET | The subnet used by the dtr-ol overlay network. Example: 10.0.0.0/24.For high-availalibity, DTR creates an overlay network between UCP nodes. This flag allows you to choose the subnet for that network. Make sure the subnet you choose is not used on any machine where DTR replicas are deployed. |
48-
| `--prune` | $PRUNE | Delete the data volumes of all unhealthy replicas.With this option, the volume of the DTR replica you're restoring is preserved but the volumes for all other replicas are deleted. This has the same result as completely uninstalling DTR from those replicas.. |
49-
| `--ucp-ca` | $UCP_CA | Use a PEM-encoded TLS CA certificate for UCP.Download the UCP TLS CA certificate from https://<ucp-url>/ca, and use --ucp-ca "$(cat ca.pem)". |
50-
| `--ucp-insecure-tls` | $UCP_INSECURE_TLS | Disable TLS verification for UCP.The installation uses TLS but always trusts the TLS certificate used by UCP, which can lead to man-in-the-middle attacks. For production deployments, use --ucp-ca "$(cat ca.pem)" instead. |
47+
| `--overlay-subnet` | $DTR_OVERLAY_SUBNET | The subnet used by the dtr-ol overlay network. Example: `10.0.0.0/24`. For high-availability, DTR creates an overlay network between UCP nodes. This flag allows you to choose the subnet for that network. Make sure the subnet you choose is not used on any machine where DTR replicas are deployed. |
48+
| `--prune` | $PRUNE | Delete the data volumes of all unhealthy replicas. With this option, the volume of the DTR replica you`re restoring is preserved but the volumes for all other replicas are deleted. This has the same result as completely uninstalling DTR from those replicas. |
49+
| `--ucp-ca` | $UCP_CA | Use a PEM-encoded TLS CA certificate for UCP. Download the UCP TLS CA certificate from https://<ucp-url>/ca, and use `--ucp-ca "$(cat ca.pem)"`. |
50+
| `--ucp-insecure-tls` | $UCP_INSECURE_TLS | Disable TLS verification for UCP. The installation uses TLS but always trusts the TLS certificate used by UCP, which can lead to MITM (man-in-the-middle) attacks. For production deployments, use `--ucp-ca "$(cat ca.pem)"` instead. |
5151
| `--ucp-password` | $UCP_PASSWORD | The UCP administrator password. |
5252
| `--ucp-url` | $UCP_URL | The UCP URL including domain and port. |
5353
| `--ucp-username` | $UCP_USERNAME | The UCP administrator username. |

datacenter/dtr/2.5/reference/cli/index.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@ docker run -it --rm docker/dtr \
1919
command [command options]
2020
```
2121

22+
If not specified, `docker/dtr` uses the `latest` tag by default. To work with a different version, specify it in the command. For example, `docker run -it --rm docker/dtr:2.5.5`.
23+
2224

2325
## Commands
2426

25-
| Option | Description |
26-
|:------------------------------------------|:---------------------------|
27-
|[install](install)| Install Docker Trusted Registry |
28-
|[join](join)| Add a new replica to an existing DTR cluster |
29-
|[reconfigure](reconfigure)| Change DTR configurations |
30-
|[remove](remove)| Remove a DTR replica from a cluster |
31-
|[destroy](destroy)| Destroy a DTR replica's data |
32-
|[restore](restore)| Install and restore DTR from an existing backup |
33-
|[backup](backup)| Create a backup of DTR |
34-
|[upgrade](upgrade)| Upgrade DTR 2.3.x cluster to this version |
35-
|[images](images)| List all the images necessary to install DTR |
27+
| Option | Description |
28+
|:-------------------------------------|:------------------------------------------------|
29+
| [install](install) | Install Docker Trusted Registry |
30+
| [join](join) | Add a new replica to an existing DTR cluster |
31+
| [reconfigure](reconfigure) | Change DTR configurations |
32+
| [remove](remove) | Remove a DTR replica from a cluster |
33+
| [destroy](destroy) | Destroy a DTR replica's data |
34+
| [restore](restore) | Install and restore DTR from an existing backup |
35+
| [backup](backup) | Create a backup of DTR |
36+
| [upgrade](upgrade) | Upgrade DTR 2.4.x cluster to this version |
37+
| [images](images) | List all the images necessary to install DTR |
38+
| [emergency-repair](emergency-repair) | Recover DTR from loss of quorum |

0 commit comments

Comments
 (0)