docker open port 2375

docker.service contents of the file are not the same in different versions docker, which gives a lot of people caused some confusion, this paper now see the contents of files in two different operations.

 

The first

Edit docker file

we /usr/lib/systemd/system/docker.service

Join the contents of the red box in the rearmost row ExecStart

-H tcp://0.0.0.0:2375

 

 

 After adding restart.

 

The second

But docker 1.13.1 version of the content is not the same, but the file location is the same, as follows, adding methods need to change

-H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock 

 

Save restart.

 

Guess you like

Origin www.cnblogs.com/dream-saddle/p/11593280.html