Please note that we will be using --cpu-shares condition. 1 CPU = 1024 cycles. We assign --cpu-shares="102" of all CPU available to Docker.
We will enable --privileged condition. This is a must. Please note that you must replace Local-IP with the LAN ip address of your docker host machine. The remote API will work on TCP Port 2375
** docker run -d --privileged --name API --restart=always --memory="1g" --cpu-shares="102" -v /var/run/docker.sock:/var/run/docker.sock -p Local-IP:2375:2375 hareemca123/docker:api **
** This container will expose your Docker Host API on port 2375. Please send API request to your docker host LAN Local-IP. Use CURL requests.**
Content type
Image
Digest
Size
6.4 MB
Last updated
over 8 years ago
docker pull hareemca123/docker:api