Please find below steps for enabling Docker Remote API on Ubuntu 16.0.4. You would need Docker API in order to access Docker containers running on the Docker Host. You can enable by modifying the /lib/systemd/system/docker.service.
Pre-requistes:
port 4243 opened in security firewall
1. sudo vi /lib/systemd/system/docker.service
Look for the text that says
ExecStart=/usr/bin/dockerd -H fd://
Now append like below:
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243
save the file and exit.
Now update the configuration in order for Docker daemon to take the changes effect.
systemctl daemon-reload
Restart Docker service
sudo service docker restart
Now test whether Docker API is accessible
curl http://localhost:4243/version
You will see below output:
{"Platform":{"Name":""},"Components":[{"Name":"Engine","Version":"17.12.0-ce","Details":{"ApiVersion":"1.35","Arch":"amd64","BuildTime":"2017-12-27T20:09:53.000000000+00:00","Experimental":"false","GitCommit":"c97c6d6","GoVersion":"go1.9.2","KernelVersion":"4.4.0-1049-aws","MinAPIVersion":"1.12","Os":"linux"}}],"Version":"17.12.0-ce","ApiVersion":"1.35","MinAPIVersion":"1.12","GitCommit":"c97c6d6","GoVersion":"go1.9.2","Os":"linux","Arch":"amd64","KernelVersion":"4.4.0-1049-aws","BuildTime":"2017-12-27T20:09:53.000000000+00:00"}
Hands on DevOps Coaching provided on AWS and Azure Cloud platforms. please contact devops.coaching@gmail.com for more info.
Subscribe to:
Post Comments (Atom)
-
Amazon ECR uses Amazon S3 for storage to make your container images highly available and accessible, allowing you to reliably deploy new co...
-
What are Pipelines in Jenkins? - Pipelines are better than freestyle jobs , you can write a lot of complex tasks using pipelines when...
-
Hashicorp's Terraform is an open-source tool for provisioning and managing cloud infrastructure. Terraform can provision resources on...
Slots by Pragmatic Play - AprCasino
ReplyDeletePragmatic Play. Pragmatic Play. Pragmatic septcasino Play. Slot Machine. apr casino The Dog House. Slots. Wild 도레미시디 출장샵 West Gold. Pragmatic Play. Jackpot หาเงินออนไลน์ Party. 1xbet 먹튀