Skip to content

Commit 52432f6

Browse files
authored
Document Docker flag needed on Linux (#41)
When you are running Docker on Linux you need to add `--add-host host.docker.internal:host-gateway` to the flags of `docker run` to be able to connect to the host as explained in [this StackOverflow answer](https://stackoverflow.com/a/24326540/2493714). We need to be able to connect to the host so we can use the `esp_rfc2217_server.py` running on the host.
1 parent 9cd1939 commit 52432f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SwiftMatterExamples/Documentation.docc/Tutorials/Setup-Docker.tutorial

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
}
6161

6262
@Step {
63-
In a new shell, launch the docker container from the previously built image.
63+
In a new shell, launch the docker container from the previously built image.
64+
65+
If you are running Docker on Linux you also need to add `--add-host=host.docker.internal:host-gateway` to the flags.
6466

6567
> Important: Be sure to run the container from the root directory of swift-matter-examples.
6668

0 commit comments

Comments
 (0)