tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

Failed to start when run via Docker when set options

Open zouyaoji opened this issue 4 years ago • 1 comments

sudo docker run --rm -it -v $(pwd)/data/mbtiles:/data -p 9001:80 maptiler/tileserver-gl -C

In the latest version, if the option "-C" is added, the service cannot be accessed. The v3.0.0 version does not have this problem.

zouyaoji avatar Jan 08 '21 03:01 zouyaoji

-c also doesn't work and you must use --config. Maybe only --no-cors works.

StefanBrand avatar Feb 04 '21 11:02 StefanBrand

Test passed in version v4.3.4 using --no-cors

zouyaoji avatar Jan 05 '23 08:01 zouyaoji

sorry to ask here. how do you solve this @zouyaoji ? I still get CORS error when consume output json tile.

tested in latest 4.5.0

docker run -d \
  --name tileserver-gl \
  --restart unless-stopped \
  -it \
  -v /mnt/e/labs/dockerwsl/volume-stuff/tileserver-gl:/data \
  -p 6080:8080 \
  maptiler/tileserver-gl:latest \
  --no-cors

edit: it turns out must be --config --no-cors

marhensa avatar Aug 27 '23 02:08 marhensa