Tutorial
Configure Resource Pool
Resource pool configuration can be done in Compose application management, and the resource pool configuration steps are as follows:
Bind Docker to Specified TCP Port
unix://var/run/docker.sock will be listened by default after installing Docker. Only local root connection is allowed. The configuration locations are different for different operating system. Here we take Ubuntu 14.04, Ubuntu 16.04, and CentOS 7 as examples.
Ubuntu 14.04
You can define the service port, such as 2375, by executing the following command.
DOCKER_OPTS=\"$DOCKER_OPTS -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375\"" | sudo tee -a /etc/default/dockerRestart Docker to make the settings take effect after configuration.
sudo service docker restartUbuntu 16.04
Create the docker.service.d folder
sudo mkdir -p /etc/systemd/system/docker.service.dCopy the /lib/systemd/system/docker.service file to the docker.service.d folder created.
sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service.d/docker.confModify the docker.conf file. Modify the content below the Service node (point indicates that the unmodified configuration is omitted)
[Service]
......
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sockRestart Docker to meke the settings take effect after configuration.
sudo systemctl daemon-reload
sudo service docker restartCentOS 7
The default configuration file needs to be copied first.
sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.serviceYou can define the service port, such as 2375, by executing the following command.
sudo sed -i "s|ExecStart=/usr/bin/dockerd|ExecStart=/usr/bin/dockerd -H 0.0.0.0:2375 -H unix:///var/run/docker.sock|g" /etc/systemd/system/docker.serviceRestart Docker to meke the settings take effect after configuration.
sudo systemctl daemon-reload
sudo service docker restartYou need to turn off the firewall first.
systemctl stop firewalld.serviceConfigure Docker
Modify Allin Package
Refer to the Allin package for instructions, modify the COMPOSE_DOCKER_IP value in the. env file, and then restart the container. If the service port is not 2375 port, you need to modify the value of DOCKER_PORT in docker-compose.yml.
Modify Install Package of iManager Docer Version
Refer to the Allin package for instructions, modify the COMPOSE_DOCKER_IP value in the. env file, and then restart the container.
If the service port is not 2375 port, you need to modify the value of DOCKER_PORT in docker-compose.yml.