docs/docker-trusted-registry/install/install-dtr-offline.md

66 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: Learn how to install Docker Trusted Registry on a machine with no internet
access.
keywords:
- docker, registry, install, offline
menu:
main:
identifier: dtr_install_offline
parent: dtr-menu-install
weight: 30
title: Install offline
---
# Install DTR offline
The procedure to install Docker Trusted Registry on a node is the same,
whether that node has access to the internet or not.
The only difference when installing DTR on an offline node, is that instead
of pulling the DTR images from Docker Hub, you use a computer that is connected
to the internet to download a single package with all DTR images. Then you
copy that package to the nodes where youll install DTR.
1. Get the DTR package.
Use a computer with internet access to download a single package with all
Docker Datacenter components:
```bash
$ wget https://packages.docker.com/caas/ucp-1.1.2_dtr-2.0.3.tar.gz -O docker-datacenter.tar.gz
```
2. Transfer the package to the offline node.
Now that you have the DTR package file, transfer it to the node where you
want to install Docker Trusted Registry. You can use the `scp` command
for this.
```bash
$ scp docker-datacenter.tag.gz $USER@$DTR_HOST:/tmp
```
3. Login into the host where you transferred the images.
4. Load the UCP images.
Once the package is on the node where you want to install DTR, you can use
the `docker load` command, to load the images from the .tar file.
```bash
$ docker load < /tmp/docker-datacenter.tar.gz
```
5. Install DTR.
Now that the offline node has all the images needed to install UCP,
you can [install DTR that host](index.md). Make sure to
also copy the images to any other nodes you want to install DTR
replicas onto.
## Where to go next
* [DTR architecture](../architecture.md)
* [Install DTR](index.md)