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)
Featured Post
-
Amazon ECR uses Amazon S3 for storage to make your container images highly available and accessible, allowing you to reliably deploy new co...
-
Let us see how to connect to an EC2 instance running in AWS from your local machine. Pre-requisites: 1. Keys(for e.g., yourkey.pem) a...
-
We will learn how to automate Docker builds using Jenkins. We will use Python based application. I have already created a repo with source...
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 먹튀