Mastering Docker Enterprise
上QQ阅读APP看书,第一时间看更新

Installing the Docker Enterprise Engine on all nodes

With your license key and Docker storebits URL saved on your local machine, it is time to install the Docker Enterprise Engine on all of your nodes. For this section, we will be using an Ubuntu distribution of Linux and a Windows 2016 server as a second worker node. So, all together we have a four-node cluster.

In an attempt to keep this information up to date and streamlined, there is a GitHub repository page for the commands in this section. It can be found here:  https://github.com/PacktPublishing/Mastering-Docker-Enterprise.

Start by creating SSH sessions into each of your Linux nodes and an RDP session into your Windows worker. Now, you are ready to begin the engine install process. Please note the bash install commands will vary slightly on different flavors of Linux and will be completely different on Windows 2016, where we use PowerShell. 

We will begin with the Linux nodes, where we will use the package manager and the official Docker repository for installing our software. Once the Docker Engines are installed, all of the other Docker Enterprise software runs in containers and will come from Docker's container registry.

Please follow these instructions carefully! Don't use the default repository from your Linux distribution to install the Docker Engine! Doing so usually results in an old or forked (sometimes called FrankenDocker) version of the community edition. Also, the following instructions assume you are using a fresh software OS install on your nodes. If that's not the case, please make sure that you remove the old versions of Docker before proceeding.

I'll demonstrate how to get started, using VS code. First, we open a couple of files using the menu bar File | Open to open two empty files. In the first file, save your connection information (public/private IPs) to your cloud servers and in the second file, just a scratch pad to store your Docker storebits URL and a place to paste commands from this chapter's accompanying repository page: https://github.com/NVISIA/MasteringDockerEE/blob/master/PoC/install/Install-EE-Engine-notes.md. Then, open some SSH Terminal sessions—one for each node. Now you are ready to install:

Figure 4: One Month Docker Enterprise Trial