Setting up a remote Docker host computer
You must set up a computer to host the remote Docker host. You can set up the remote host with a non-secure mode of connection with HCL OneTest™ Server.
Before you begin
You must have identified a remote computer or VM that has a minimum of 16 GB RAM. You must have installed Ubuntu V18.04 or later, on the remote computer.
You must have installed Docker Enterprise Edition for a non-secure mode of connection with HCL OneTest™ Server on the remote Docker host computer. Refer to Get Docker Engine.
You must have the entitlement key that is required for you to connect to the Harbor repository to be able to pull in the software image to the remote Docker host.
About this task
- Enables SSH.
- Creates user credentials for you with root permissions.
- Provides the name of the Docker container.
- Provides the IP address of the remote Docker host computer.
Procedure
-
As a system administrator of the remote system, specify a port to access the Docker daemon in
the docker.service file located in the directory
/lib/systemd/system. You must add the configured port at the line in the
file:
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:PORT
For example, if the port configured is 4342, then the line must read as:
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4342
-
Restart the Docker service by using the following commands:
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
-
Perform the following steps as a user with root permissions or ask the system administrator to complete the following steps:
Results
You have set up the remote Docker host computer that can be accessed in a non-secure mode.
What to do next
You can set up a secure remote Docker host computer optionally, that enables a secure connection with HCL OneTest™ Server. See Setting up a secure remote Docker host computer.
You can register the remote Docker host on HCL OneTest™ Server. See Registering a remote Docker host.