Record every new journey

How to Enable Docker Remote API

0 585

How to Enable Docker Remote API

Docker Engine exposes a REST API which you can use to control your containers without the docker CLI. The API exposes equivalent functionality using HTTP network calls. You can script common Docker operations using your favorite programming language or remotely control one of your hosts. The CLI internally relies on the same API to provide its built-in commands.


Here are how to Enable Docker Remote API

Open docker.service located in /lib/systemd/system

Find the line which starts with ExecStart  and disable by putting # before

Place this below

Read Also >>

Save the Modified File

Reload the docker daemon

Restart the container

Test if it is working

if everything is fine below command should return a JSON



You might also like
Leave A Reply

Your email address will not be published.