From 139b122b6cab46abba37eee750bd19e3c41d48df Mon Sep 17 00:00:00 2001 From: Sudaisib Date: Sat, 19 Sep 2026 15:48:28 +0100 Subject: [PATCH 1/2] docs: clarify Docker Desktop hosts limitation --- .../manuals/engine/daemon/remote-access.md | 79 ------------------- 1 file changed, 79 deletions(-) diff --git a/content/manuals/engine/daemon/remote-access.md b/content/manuals/engine/daemon/remote-access.md index 721990498691..f17f8bb446e5 100644 --- a/content/manuals/engine/daemon/remote-access.md +++ b/content/manuals/engine/daemon/remote-access.md @@ -46,82 +46,3 @@ and the `daemon.json` file causes a conflict that prevents Docker from starting. [Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375 - ``` - -3. Save the file. - -4. Reload the `systemctl` configuration. - - ```console - $ sudo systemctl daemon-reload - ``` - -5. Restart Docker. - - ```console - $ sudo systemctl restart docker.service - ``` - -6. Verify that the change has gone through. - - ```console - $ sudo netstat -lntp | grep dockerd - tcp 0 0 127.0.0.1:2375 0.0.0.0:* LISTEN 3758/dockerd - ``` - -### Configuring remote access with `daemon.json` - -1. Set the `hosts` array in the `/etc/docker/daemon.json` to connect to the Unix - socket and an IP address, as follows: - - ```json - { - "hosts": ["unix:///var/run/docker.sock", "tcp://127.0.0.1:2375"] - } - ``` - -2. Restart Docker. - -3. Verify that the change has gone through. - - ```console - $ sudo netstat -lntp | grep dockerd - tcp 0 0 127.0.0.1:2375 0.0.0.0:* LISTEN 3758/dockerd - ``` - -### Allow access to the remote API through a firewall - -If you run a firewall on the same host as you run Docker, and you want to access -the Docker Remote API from another remote host, you must configure your firewall -to allow incoming connections on the Docker port. The default port is `2376` if -you're using TLS encrypted transport, or `2375` otherwise. - -Two common firewall daemons are: - -- [Uncomplicated Firewall (ufw)](https://help.ubuntu.com/community/UFW), often - used for Ubuntu systems. -- [firewalld](https://firewalld.org), often used for RPM-based systems. - -Consult the documentation for your OS and firewall. The following information -might help you get started. The settings used in this instruction are -permissive, and you may want to use a different configuration that locks your -system down more. - -- For ufw, set `DEFAULT_FORWARD_POLICY="ACCEPT"` in your configuration. - -- For firewalld, add rules similar to the following to your policy. One for - incoming requests, and one for outgoing requests. - - ```xml - - [ -i zt0 -j ACCEPT ] - [ -o zt0 -j ACCEPT ] - - ``` - - Make sure that the interface names and chain names are correct. - -## Additional information - -For more detailed information on configuration options for remote access to the daemon, refer to the -[dockerd CLI reference](/reference/cli/dockerd/#bind-docker-to-another-hostport-or-a-unix-socket). From 831efe62334231fa2c008eeba5aae888015f046b Mon Sep 17 00:00:00 2001 From: Oladosu Ibrahim Date: Sat, 19 Sep 2026 16:13:04 +0100 Subject: [PATCH 2/2] Update remote-access.md