This Docker image is a container with a MapServer Setup, featuring the MapServer suite.It is based on Ubuntu 14.04 and UbuntuGIS packages.
Git clone this repository to get the Dockerfile, and cd to it.
You can build the image with :
sudo docker.io build -t oslandia/dkr-ms .
Run the container with :
sudo docker.io run --rm -P --name dkr-ms-test oslandia/dkr-ms /sbin/my_init
Once the container run, you can access MapServer and MapCache services. You need to use docker ps to find out what local host port the container is mapped to first:
$ sudo docker.io ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a2d16f1a0540 oslandia/dkr-ms:latest /sbin/my_init 23 seconds ago Up 22 seconds 0.0.0.0:49157->80/tcp dkr-ms-test
This is for a temporary connexion (insecure key). Start a container with --enable-insecure-key:
docker run -rm -P --name dkr-ms-test oslandia/dkr-ms /sbin/my_init --enable-insecure-key
Find out the ID of the container that you just ran:
docker ps
Once you have the ID, look for its IP address with:
docker inspect | grep IPAddress
Now SSH into the container as follows:
curl -o insecure_key -fSL https://github.com/phusion/baseimage-docker/raw/master/image/insecure_key chmod 600 insecure_key ssh -i insecure_key root@
More info and secure connection : https://github.com/phusion/baseimage-docker
Dockerfile reference : http://docs.docker.io/reference/builder/
Content type
Image
Digest
sha256:53f876da7…
Size
152.5 MB
Last updated
almost 11 years ago
docker pull oslandia/dkr-ms