Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove port 80 mapping in devcontainer #24658

Merged
merged 1 commit into from Apr 30, 2023
Merged

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Apr 25, 2023

This change leaves ports 3000 and 4000 mapped, but removes port 80.

On MacOS and possible other OSes, mapping port 80 requires a preference
change on docker as it's a privileged port. The devcontainer fails to
run without this change, which is a annoying. Additionally, this mapping
will fail for anyone that already has port 80 mapped for some other
purpose.

This change leaves ports 3000 and 4000 mapped, but removes port 80.

On MacOS and possible other OSes, mapping port 80 requires a preference
change on docker as it's a privileged port. The devcontainer fails to
run without this change, which is a annoying. Additionally, this mapping
will fail for anyone that already has port 80 mapped for some other
purpose.
@joshka
Copy link
Contributor Author

joshka commented Apr 25, 2023

Ping @rrgeorge and @samruddhikhandale because of PR #24303

@rrgeorge
Copy link
Contributor

I am using the devcontainer on my Mac
with docker desktop, without issue. I don’t recall needing to give special authorization to docker for it, but that may have been when I was trying to figure out why the ports wouldn’t forward via the devcontainer.json specification. But if it’s causing issues for some folks, then I don’t see any reason it has to stay

@ykzts ykzts merged commit 89c0138 into mastodon:main Apr 30, 2023
26 checks passed
michealmikeyb pushed a commit to michealmikeyb/mastodon that referenced this pull request May 3, 2023
skerit pushed a commit to 11ways/mastodon that referenced this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants