Skip to content

Commit a83ee12

Browse files
Apply suggestions from code review
Co-authored-by: emily-shen <[email protected]>
1 parent fc9cf80 commit a83ee12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/containers/local-dev.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ you are using in your container code.
5252
In production, all of your container's ports will be accessible by your Worker,
5353
so you do not need to specifically expose ports using the [`EXPOSE` instruction](https://docs.docker.com/reference/dockerfile/#expose) in your Dockerfile.
5454

55-
But for local development on non-Linux systems, you most likely need to expose a port to access your container properly; for example: `EXPOSE 4000`.
55+
But for local development on non-Linux systems, you will need to declare any ports you need to access in your Dockerfile with the EXPOSE instruction; for example: `EXPOSE 4000`, if you will be accessing port 4000.
5656

57-
If you have not exposed any ports, you will see the following type of error when building or pulling your container image:
57+
If you have not exposed any ports, you will see the following error in local development:
5858

5959
```text
6060
The container "MyContainer" does not expose any ports, please expose any port that you want to use with `getTCPPort()`.
6161
```
6262

63-
And if you call `getTCPPort()` on an unexposed port you will see the following error:
63+
And if you call `getTCPPort()` on a port that you have not exposed in your `Dockerfile` you will see the following error:
6464

6565
```text
6666
connect(): Connection refused: container port not found. Make sure you exposed the port in your container definition.

0 commit comments

Comments
 (0)