Wednesday, February 21, 2018

How to Enable Docker Remote API on Ubuntu 16.04?

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.


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://

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:


1 comment:

  1. Slots by Pragmatic Play - AprCasino
    Pragmatic Play. Pragmatic Play. Pragmatic septcasino Play. Slot Machine. apr casino The Dog House. Slots. Wild 도레미시디 출장샵 West Gold. Pragmatic Play. Jackpot หาเงินออนไลน์ Party. 1xbet 먹튀