geerlingguy / geerlingguy/docker-examples

Top level README example for localhost server opens firewall hole, listens to connections from the internet

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
81
Forks
39
PR merge metrics
No merged PRs in 30d

Description

There's "running an Nginx webserver on localhost" followed by this command line: docker run -d -p 80:80 --name webserver nginx

But in reality, you need to use docker run -p 127.0.0.1:nnnn:nnnn to use localhost. And Docker will go out of its way to even make a firewall rule to allow traffic to the given incoming port from the internet.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.