Closed czxxing closed 4 years ago
The postgis/postgis:11-3.0 is a debian-based image which does not have everything installed by default. You can use debian tools to install shp2pgsql or you can use the alpine based image which does include it as a default.
For the debian-based image, the shp2pgsql appears to be contained in the postgis metapackage so installing it can be done with apt-get update && apt-get install postgis
which will install a lot of things, but afterward the util will be located at /usr/bin/shp2pgsql
For the alpine based images, shp2pgsql will be located at /usr/local/bin/shp2pgsql
Hope that helps!
I pull a docker image from docker hub , docker pull postgis/postgis:11-3.0, and then run it : docker run -itd --name postgis_11_3.0 -e "POSTGRES_USER=giser" -e "POSTGRES_PASSWORD=giser" -v /application/postgresql-docker/postgis_11_3.0:/var/lib/postgresql/data -p 5432:5432 -d docker.io/postgis/postgis:11-3.0
when use it , can't find the tool shp2pgsql', how can i do ?
thanks !!!