Docker: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Created page with "[http://docker.com Docker] is a container platform. It's open source but if you go to the site, you won't be able to tell, you can just find out about pricing there. After lo..."
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 18: Line 18:


I have no idea what Fig is, yet.
I have no idea what Fig is, yet.
== Docker Hub ==
apt-get install docker-engine
sudo docker pull nginx
cd ''static-html-directory''
cat <<EOF > nginx.docker
FROM nginx
COPY static-html-directory /usr/share/nginx/html
EOF
Place this file in the same directory as your directory of content ("static-html-directory"), run  ., then start your container:
docker run --name some-nginx -d some-content-nginx
sudo docker pull php
sudo docker pull redis
sudo docker pull tomcat

Revision as of 07:06, 22 November 2016

Docker is a container platform.

It's open source but if you go to the site, you won't be able to tell, you can just find out about pricing there. After looking at docker.com, go to https://github.com/docker/docker and look for installation instructions there.

I am following their instructions to install on two Debian systems, one co-located and one at home.

I want to set up containers for Geonode and Geoserver.

I know how fiddly Geoserver can be (it runs in Tomcat) and so I want to isolate it from the Debian host it will run on.

I already have PostgreSQL 9.5 running directly on the host, but my only intended use is as a backend for PostGIS/Geoserver, so I will probably follow along with the instructions here and containerize it too.

So in preparation for using Docker. I removed PostgreSQL and Tomcat from my host server.

Orchestrating Geoserver with Docker and Fig

I have no idea what Fig is, yet.

Docker Hub

apt-get install docker-engine


sudo docker pull nginx

cd static-html-directory cat <<EOF > nginx.docker FROM nginx COPY static-html-directory /usr/share/nginx/html EOF

Place this file in the same directory as your directory of content ("static-html-directory"), run ., then start your container:

docker run --name some-nginx -d some-content-nginx



sudo docker pull php sudo docker pull redis sudo docker pull tomcat