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

Do not use PORT 80 by default #439

Open
nyurik opened this issue Apr 21, 2020 · 1 comment
Open

Do not use PORT 80 by default #439

nyurik opened this issue Apr 21, 2020 · 1 comment

Comments

@nyurik
Copy link
Contributor

nyurik commented Apr 21, 2020

Using port 80 by default requires the docker to run as ROOT. Please change it to some other port above 1024, e.g. 8080.

Example of failure: docker run -it --rm -u $(id -u):$(id -g) -p 8080:80 maptiler/tileserver-gl -- tileserve-gl will not be able to open the port.

A less-than-ideal workaround would be to add --port param, e.g.

docker run -it --rm -u $(id -u):$(id -g) -p 8080:8080 maptiler/tileserver-gl --port 8080

Also note that EXPOSE 80 in Dockerfile would need to be updated (technically it is not required as it is mostly for documentation purposes from my understanding)

nyurik added a commit to nyurik/openmaptiles that referenced this issue Apr 21, 2020
It is not possible to open port 80 without ROOT inside docker container.
Change default port for start-tileserver target to use port 8080.

Documented in maptiler/tileserver-gl#439
nyurik added a commit to openmaptiles/openmaptiles that referenced this issue Apr 22, 2020
It is not possible to open port 80 without ROOT inside docker container.
Change default port for start-tileserver target to use port 8080.

Documented in maptiler/tileserver-gl#439
@StefanBrand
Copy link

Related: #517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants