Sample Ubuntu Docker Engine install

This section is adapted from docs.docker.com (Docker's official documentation for the community and enterprise editions) and walks us through the process of installing Docker Enterprise—https://docs.docker.com/install/linux/docker-ee/ubuntu/.

For our PoC example, we will use the Beta3 release of Docker Enterprise of 2.1 to ensure the information is as current as possible. Since this is the third beta release of version 2.1, it should be very similar to the production release at the end of 2018. However, do note that where the Docker version information appears is subject to change. 
  1. Update the Ubuntu package manager:
    1. On each Linux node, update the package manager as follows:
sudo apt-get update
    1. Now, enable APT to run over HTTPS using the following command:
sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
  1. Configure the Ubuntu package manager repositories to use the official Docker binaries:
    1. Set up DOCKER_EE_URL environment variables using your Docker Store's storebits URL that you recorded earlier. Then, choose the desired Docker version. You can find them listed using your (replacing x's) storebits URL with this pattern: https://storebits.docker.com/ee/ubuntu/sub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/dists/xenial/. Your commands should look like the following.
DOCKER_EE_URL="https://storebits.docker.com/ee/ubuntu/sub-aff4b542-98da-438b-924e-8cc2c8f54b69"
DOCKER_EE_VERSION=test
    1. Here, we add Docker's repository to your Linux package manager, update APT, and then install the Docker Enterprise version:
curl -fsSL "${DOCKER_EE_URL}/ubuntu/gpg" | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] $DOCKER_EE_URL/ubuntu \
   $(lsb_release -cs) \
   stable-17.06"

sudo apt-get update
  1. Install official Docker from properly configured repositories:
    1. This instructs the package manage to install Docker Enterprise:
sudo apt-get install -y docker-ee
  1. Add user to Docker group (optional):
    1. We add your current user to the Docker group to avoid running Docker commands using root or sudo:
sudo usermod -aG docker $USER
  1. Test the install:
    1. Log out. Then, log back in and try running Docker command (without sudo) to test Docker and Docker group permissions. Run docker info and you should see the output as in Figure 5.
    2. Notice the server version label is 18.09X was installed and information on the host including the kernel version, which must be > 3.10:
$ docker info

The following is the output of the docker info command. Please note the version:

Figure 5: Docker Info After Docker Linux Install
If you're creating virtual machine templates for your Docker Enterprise nodes from the first node setup that you already installed, you must remove the /etc/docker/key.json file from the virtual machine image. Then, after provisioning a virtual machine from the image, just restart the Docker daemon to create a new  /etc/docker/key.json file.
    1. Next, we move on to the Windows worker node setup.