install Using Mapserver container https://github.com/srounet/docker-mapserver
To run a new Docker container - mapping the external : internal ports
sudo docker run -d -p HOST_CUSTOM_PORT:80 -v /usr/local/mapserver:/maps --name mapserver mapserver
For example:
sudo docker run -d -p 81:80 -v /usr/local/mapserver:/maps --name mapserver mapserver
To get to BASH in the container
sudo docker exec -i -t mapserver bash
OR
docker exec -it mapserver sh
To Test it:
http://YOUR_IPADDRESS:PORT/cgi-bin/mapserv
To add a link to your host machine as a resource
Copy files in and out of a docker containedo
docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt
LIST ALL CONTAINERS RUNNING
sudo docker ps
KILL A RUNNING CONTAINER
sudo docker kill {name of container}
REMOVE CONTAINER
sudo docker rm {name of container}
No comments:
Post a Comment