Tried different ways to enable the Remote API, never get any luck on anything…

But finally, here is what I did, that works!

Here is my docker content:

Add ‘-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock’ in the ‘OPTIONS’:

Then restart your docker daemon by systemctl restart docker

Test:

 

Done~ This only enables the local port, so it’s secure for testing purpose.