openwrt / docker

Docker containers of the ImageBuilder and SDK
GNU General Public License v2.0
495 stars 78 forks source link

How does docker open port 2375 to provide external access to docker? #85

Closed heixiaoma closed 2 years ago

aparcar commented 2 years ago

I don't understand this question, how is it related to OpenWrt?

doyard commented 2 years ago

This is not related to OpenWrt. Just modify the docker daemon config file (by default /etc/docker/daemon.json):

{
    "hosts":[
                "tcp://0.0.0.0:2375",
                "unix:///var/run/docker.sock"
    ]
}

or start dockerd with an -H flag like dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375

heixiaoma commented 2 years ago

It has been handled. There is no such configuration file in the early version, such as a beat version of docker. After updating, it is found that there is such a configuration