Fixes for readme

pull/1/head
Tim Sutton 2014-05-04 22:31:00 +02:00
rodzic 3e88b08bf4
commit 7672465563
2 zmienionych plików z 11 dodań i 10 usunięć

Wyświetl plik

@ -3,4 +3,4 @@
# use apt-cacher in your image build out (and the
# Subsequent running container.
#Acquire::http { Proxy "http://192.168.1.13:3142"; };
Acquire::http { Proxy "http://192.168.1.14:3142"; };

Wyświetl plik

@ -24,16 +24,16 @@ git clone git://github.com/timlinux/docker-postgis
Now edit ``71-apt-cacher-ng`` then do:
```
docker build -t kartoza/postgis:2.2 .
docker build -t kartoza/postgis .
```
Run
---
## Run
To create a running container do:
```
sudo docker run --name "postgis" -p 2222:22 -p 25432:5432 -d -t kartoza/postgis:2.1
sudo docker run --name "postgis" -p 2222:22 -p 25432:5432 -d -t kartoza/postgis
```
## Connect via psql
@ -48,6 +48,8 @@ host / client):
psql -h localhost -U docker -p 25432 -l
```
**Note:** Default postgresql user is 'docker' with password 'docker'.
You can then go on to use any normal postgresql commands against the container.
Under ubuntu 14.04 the postgresql client can be installed like this:
@ -57,7 +59,7 @@ sudo apt-get install postgresql-client-9.3
```
# Storing data on the host rather than the container.
## Storing data on the host rather than the container.
Docker volumes can be used to persist your data.
@ -72,8 +74,7 @@ for the docker process to read / write it.
Connect via ssh
---------------
## Connect via ssh
To log into your container do:
@ -84,7 +85,7 @@ ssh root@localhost -p 2222
Default ssh password is 'postgis'
Credits
-------
## Credits
Tim Sutton (tim@linfiniti.com)
May 2014