Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Docker + PostgreSQL 
Fernando Ike – PGDay Campinas
● http://www.postgresql.org.br 
● http://planeta.postgresql.org.br 
● http://pgbr.postgresql.org.br
Instalação 
● Debian 
#aptitude install docker.io 
● Ubuntu 
#apt-get install docker.io
Install/Run 
● Debian 
$docker run -d -p 5432:5432 fike/debian-postgresql:9.4-ptbr 
● Ubuntu 
$docker run -d -p 5432:5432 ...
Entrando no PostgreSQL 
$CONTAINER_PG=$(docker ps -q) 
$docker run -i -t --net="container:$CONTAINER_PG"  
fike/debian-pos...
Logs 
$CONTAINER_PG=$(docker ps -q) 
$docker logs -f $CONTAINER_PG 
$docker run -i -t --net="container:$CONTAINER_PG"  
fi...
Links 
● https://registry.hub.docker.com/u/fike/ubuntu-postgresql/ 
● https://registry.hub.docker.com/u/fike/debian-postgr...
Contato 
● Site: http://www.fernandoike.com 
● Email: fike at midstorm.org 
● Twiter: @fernandoike 
● Linkedin: https://ww...
Docker e postgresql
Upcoming SlideShare
Loading in …5
×

Docker e postgresql

4,298 views

Published on

Apresentação sobre como usar o PostgreSQL com o Docker

Published in: Travel
  • Follow the link, new dating source: ❶❶❶ http://bit.ly/39mQKz3 ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ♥♥♥ http://bit.ly/39mQKz3 ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Docker e postgresql

  1. 1. Docker + PostgreSQL Fernando Ike – PGDay Campinas
  2. 2. ● http://www.postgresql.org.br ● http://planeta.postgresql.org.br ● http://pgbr.postgresql.org.br
  3. 3. Instalação ● Debian #aptitude install docker.io ● Ubuntu #apt-get install docker.io
  4. 4. Install/Run ● Debian $docker run -d -p 5432:5432 fike/debian-postgresql:9.4-ptbr ● Ubuntu $docker run -d -p 5432:5432 fike/ubuntu-postgresql:9.4-ptbr1
  5. 5. Entrando no PostgreSQL $CONTAINER_PG=$(docker ps -q) $docker run -i -t --net="container:$CONTAINER_PG" fike/debian-postgresql:9.4-ptbr /bin/bash $psql -U postgresql -h 127.0.0.1 -W “foobar”
  6. 6. Logs $CONTAINER_PG=$(docker ps -q) $docker logs -f $CONTAINER_PG $docker run -i -t --net="container:$CONTAINER_PG" fike/debian-postgresql:9.4-ptbr tail -f /var/log/postgresql/postgresql-9.4-main.log
  7. 7. Links ● https://registry.hub.docker.com/u/fike/ubuntu-postgresql/ ● https://registry.hub.docker.com/u/fike/debian-postgresql/ ● https://docs.docker.com/examples/postgresql_service/ ● https://groups.google.com/forum/#!forum/docker-users-br ● http://www.docker.io
  8. 8. Contato ● Site: http://www.fernandoike.com ● Email: fike at midstorm.org ● Twiter: @fernandoike ● Linkedin: https://www.linkedin.com/in/fernandoike

×