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)
-
We get these questions a lot from the teams we are coaching at my customer's work place How to create microservices? How to break...
-
Let's learn how to connect to an EC2 instance running in AWS from your local machine. Your local machine can be Windows laptop or MacBoo...
-
Amazon Elastic Container Registry (ECR) is a fully managed container registry service provided by Amazon Web Services (AWS). It allows user...
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 먹튀