Tag: postgresql

Postgresql with docker: FATAL: could not read permissions of directory: Permission denied

I’m trying to dockerize a postgresql server while persisting the data on the host. My container works fine without mounting volumes from the host, but it crashes because of permissions with those volumes: FATAL: could not read permissions of directory “/var/lib/postgresql/9.4/main”: Permission denied my docker run command is docker run -p 54332:5432 -v `pwd`/volumes/postgres/log:/var/log/postgresql -v […]

Understanding how to import a map.osm file into a postgres database.

I was just reading a tutorial HERE. I am assigned with the following task: The task is to create a Docker image that has PostgreSQL installed. The PostgreSQL database should be PostGIS-enabled. The Docker image should also allow quick and easy import of an .osm map data file into the database. The database should contain […]

How do I expose Docker a Docker port via Kubernetes in Google Cloud?

I am trying to wrap my head around provisioning Docker instances in Kubernetes on Google Cloud. I have build a replica controller that specifies a single pod and defined a port to be exposed, but it is not being exposed. Here is my containers.yaml: apiVersion: v1 kind: ReplicationController metadata: name: postgres spec: replicas: 1 selector: […]

How do you pass an environment variable to Solr running inside Docker when the environment variable only exists inside the container?

I need to do a dataimport from a PostgreSQL container running inside docker to a Solr server also running inside of Docker. In my docker run command I specify the –link option which creates the environment variable $POSTGRESQL_PORT_5432_TCP_ADDR inside the solr docker container, and I need to pass this into Solr to use in my […]

Install pgAdmin 3 without postgresql

I try to install pgAdmin3 for postgresql 9.4 but have an error: Could not find your PostgreSQL installation. You might need to use the –with-pgsql=DIR configure option. I saw some questions in this resource, for example Building pgadmin3-1.20.0 in CentOS 7 with PostgreSQL-9.4 But I’ve postgresql running in Docker and have not locally installation. Any […]

Docker: Running multiple applications VS running multiple containers

I am trying to run Wildfly, Jenkins and Postgresql in Docker container(s). As far as I could understand from articles I’ve read, the Docker way is to have each application run in a different container. Is my assumption correct or is it better to have only one container containing these three applications?

docker CMD run supervisord in background

is there any way to run supervisord in the background. means start the process and get out of shell. I have a docker file where i try to run a script that suppose to start the postgresql and then get out. so I have a process running and i can create users. Docker command CMD […]

Some docker containers don't start on system boot

I’m using docker restart policies on my containers (–restart=always) running on Ubuntu 14.04. Example containers: docker run -d –restart=always redis:2.8 docker run -d –restart=always postgres:9.4 When I reboot the machine the postgres container starts automatically but the redis container does not. Is this a problem with docker restart policies or am I missing something? Edit: […]

docker-compose django-postgres error

I have exactly followed this tutorial (http://docs.docker.com/compose/django/) but when doing docker-compose up I get this error: $ docker-compose up Recreating composeexample_db_1… Recreating composeexample_web_1… Attaching to composeexample_db_1, composeexample_web_1 db_1 | LOG: database system was shut down at 2015-07-27 16:17:21 UTC db_1 | LOG: MultiXact member wraparound protections are now enabled db_1 | LOG: database system is […]

docker postgres data on build step

I’m trying to create a docker image with postgres AND some users, schema and data. I don’t want to use docker-entrypoint-initdb.d because database will be initialize in docker run step, i want all my data avalaible when docker run. So i’m trying to build an image with some users, schema and data, but i can’t […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.