...
|
...
|
@@ -36,9 +36,13 @@ Running an interactive shell
|
36
|
36
|
Bind Docker to another host/port or a unix socket
|
37
|
37
|
-------------------------------------------------
|
38
|
38
|
|
39
|
|
-If you want Docker to listen to another port and bind to another ip
|
40
|
|
-use -H on both deamon and client.
|
41
|
|
--H could be (if no sheme, tcp is assumed):
|
|
39
|
+With -H it is possible to make the Docker daemon to listen on a specific ip and port. By default, it will listen on 127.0.0.1:4243 to allow only local connections but you can set it to 0.0.0.0:4243 or a specific host ip to give access to everybody.
|
|
40
|
+
|
|
41
|
+Similarly, the Docker client can use -H to connect to a custom port.
|
|
42
|
+
|
|
43
|
+-H accepts host and port assignment in the following format: tcp://[host][:port] or unix://path
|
|
44
|
+For example:
|
|
45
|
+
|
42
|
46
|
* tcp://host -> tcp connection on host:4243
|
43
|
47
|
* tcp://host:port -> tcp connection on host:port
|
44
|
48
|
* tcp://:port -> tcp connection on 127.0.0.1:port
|
...
|
...
|
@@ -51,7 +55,7 @@ use -H on both deamon and client.
|
51
|
51
|
# Download a base image
|
52
|
52
|
docker -H :5555 pull base
|
53
|
53
|
|
54
|
|
-You can use multiple -H, for exemple, if you want to listen
|
|
54
|
+You can use multiple -H, for example, if you want to listen
|
55
|
55
|
on both tcp and a unix socket
|
56
|
56
|
|
57
|
57
|
.. code-block:: bash
|