The image above shows that Docker is installed successfully.
1.2 Docker Daemon Remote Access
The Docker Daemon is a core component of Docker, running in the background and managing requests from the Docker Client. The Docker Client interacts with Docker Daemon via the command line to perform Docker operations.The Docker Daemon listens on a specific port for requests from the Docker Client. It creates and runs jobs based on the request type to pull images, start containers, and stop containers.
Modify docker.service File to Open Port 2375
To facilitate EMC test mining, open TCP port 2375 for Docker Daemon. This allows it to listen and create jobs.
The docker.service file is located in the systemd folder. To configure it by modifying docker.service, first check if your system uses systemd.
As shown in the image, the system uses systemd.
Proceed by using the following command to modify the docker.service file:
As shown in the image, add -H tcp://127.0.0.1:2375to the specified location in the file. Press ESC, then type :wq to save and exit.
Use systemctlto reload the Docker Daemonand apply the changes:
Systemctl provides a set of subcommands to manage a single unit, with the command format: systemctl [command] [unit].
Restart Docker service:
The image shows that if the Docker service runs as expected after modifying the docker.service unit, the modification is successful. If issues occur, examine the modification process for errors.
Verify if port 2375 is open
Enter the following command in the cloud server terminal:
As shown in the image, port TCP 2375 is open, and Docker Daemon is listening.
2. NVIDIA GPU configuration
Configure the NVIDIA GPU on the cloud server to enable seamless GPU usage within containers for optimal performance.
2.1 NVIDIA Container Runtime Installation and Usage
With NVIDIA Container Runtime, users register a new runtime during container creation to expose NVIDIA GPUs to applications within the container.