{"action":"closed","issue":{"url":"https://api.github.com/repos/appropriate/docker-postgis/issues/2","labels_url":"https://api.github.com/repos/appropriate/docker-postgis/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/appropriate/docker-postgis/issues/2/comments","events_url":"https://api.github.com/repos/appropriate/docker-postgis/issues/2/events","html_url":"https://github.com/appropriate/docker-postgis/issues/2","id":54579876,"number":2,"title":"ERROR:  required extension \"postgis\" is not installed","user":{"login":"Starefossen","id":968267,"avatar_url":"https://avatars.githubusercontent.com/u/968267?v=3","gravatar_id":"","url":"https://api.github.com/users/Starefossen","html_url":"https://github.com/Starefossen","followers_url":"https://api.github.com/users/Starefossen/followers","following_url":"https://api.github.com/users/Starefossen/following{/other_user}","gists_url":"https://api.github.com/users/Starefossen/gists{/gist_id}","starred_url":"https://api.github.com/users/Starefossen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starefossen/subscriptions","organizations_url":"https://api.github.com/users/Starefossen/orgs","repos_url":"https://api.github.com/users/Starefossen/repos","events_url":"https://api.github.com/users/Starefossen/events{/privacy}","received_events_url":"https://api.github.com/users/Starefossen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appropriate/docker-postgis/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":55,"created_at":"2015-01-16T14:19:16Z","updated_at":"2015-09-11T05:28:41Z","closed_at":"2015-09-11T05:28:41Z","body":"**Host OS:** Ubuntu 14.04\r\n**Docker version:** 1.3.3\r\n\r\n**Dockerfile:**\r\n\r\n```\r\nFROM mdillon/postgis:9.3\r\n\r\n# Add init script\r\nADD initdb-foo.sh /docker-entrypoint-initdb.d/foo.sh\r\n\r\n# Add locale\r\nRUN echo \"nb_NO.UTF-8 UTF-8\" >> /etc/locale.gen && locale-gen\r\n```\r\n\r\n**initdb-foo.sh:**\r\n\r\n```sh\r\n#!/bin/sh\r\nPOSTGRES=\"gosu postgres postgres\"\r\n\r\n$POSTGRES --single -E <<EOSQL\r\nCREATE DATABASE foo template template0 lc_collate 'nb_NO.UTF-8' lc_ctype 'nb_NO.UTF-8';\r\nEOSQL\r\n\r\n$POSTGRES --single foo -E <<EOSQL\r\nCREATE EXTENSION postgis;\r\nCREATE EXTENSION postgis_topology;\r\nEOSQL\r\n```\r\n\r\nI get the following output when I run my Dockerfile:\r\n\r\n```\r\nPostgreSQL stand-alone backend 9.3.5\r\nbackend> statement: CREATE DATABASE foo template template0 lc_collate 'nb_NO.UTF-8' lc_ctype 'nb_NO.UTF-8';\r\n\r\nbackend> \r\nPostgreSQL stand-alone backend 9.3.5\r\nbackend> statement: CREATE EXTENSION postgis;\r\n\r\nERROR:  type addbandarg[] does not exist\r\nSTATEMENT:  CREATE EXTENSION postgis;\r\n\r\nbackend> statement: CREATE EXTENSION postgis_topology;\r\n\r\nERROR:  required extension \"postgis\" is not installed\r\nSTATEMENT:  CREATE EXTENSION postgis_topology;\r\n\r\nbackend> LOG:  database system was shut down at 2015-01-16 14:10:49 UTC\r\n```"}}