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:// -H unix:///var/run/docker.sock’ in the ‘OPTIONS’:

Then restart your docker daemon by systemctl restart docker



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