Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

seems not working with docker 1.7 #77

Open
suppix opened this issue Jun 25, 2015 · 15 comments
Open

seems not working with docker 1.7 #77

suppix opened this issue Jun 25, 2015 · 15 comments

Comments

@suppix
Copy link

suppix commented Jun 25, 2015

dokku postgresql:create db
Your docker version is too old, please update it

dokku postgresql:link web db
docker: "inspect" requires a minimum of 1 argument.
See 'docker inspect --help'.

Usage: docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]

@Subtletree
Copy link

+1

@dianseptiana
Copy link

I have the same problem. It keep saying my docker version is too old, when i run "dokku postgresql:create appdb". This is the detail of installed docker:

Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64

@masodev
Copy link

masodev commented Jun 27, 2015

Same issue here!

@stephenbaidu
Copy link

Same here. I have Docker 1.7.0

@stephenbaidu
Copy link

According to the Docker release note (Jun 22), the volumes systems have been completely rewritten. After a shallow search, I realised /var/lib/docker/vfs/dir/ is no more. So I changed
VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/vfs/dir/ | awk '{print $2}' | sed -e's/"//g')
to
VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/volumes | awk '{print $2}' | sed -e's/"//g')

And I get the following error

dokku postgresql:create myapp
docker: "inspect" requires a minimum of 1 argument.
See 'docker inspect --help'.

Usage: docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]

Return low-level information on a container or image
json: cannot unmarshal array into Go value of type struct { NetworkSettings struct { Ports nat.PortMap } }
-----> Setting config vars
       DATABASE_URL: postgres://root:dCy8p6GLF5gCUl7K@:/db
-----> Restarting app myapp
App myapp has not been deployed

-----> myapp linked to postgresql/myapp database

-----> PostgreSQL container created: postgresql/myapp
docker: "inspect" requires a minimum of 1 argument.
See 'docker inspect --help'.

Usage: docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]

Return low-level information on a container or image
json: cannot unmarshal array into Go value of type struct { NetworkSettings struct { Ports nat.PortMap } }

       Host: 
       Port: 
       User: 'root'
       Password: 'dCy8p6GLF5gCUl7K'
       Database: 'db'

       Url: 'postgres://root:dCy8p6GLF5gCUl7K@:/db'

@kriskova
Copy link

+1

@stephenbaidu
Copy link

I was able to fix this at my end. I made two changes in the commands file.
There has been a change in the volumes system, so I changed

VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/vfs/dir/ | awk '{print $2}' | sed -e's/"//g')

to

VOLUME_PATH=$(docker inspect $ID | grep /var/lib/docker/volumes | awk '{print $2}' | sed -e's/"//g')

And since the created postgresql/$APP image does not have the latest tag added, I changed

function get_postgresql_id() {
    ID=$(docker ps | grep postgresql/"$APP":latest | awk {'print $1'})

to

function get_postgresql_id() {
    ID=$(docker ps | grep postgresql/"$APP" | awk {'print $1'})

This works for me for now.

@kriskova
Copy link

@stephenbaidu +1! Works for me! Thanks!

@srigi
Copy link

srigi commented Jun 29, 2015

+1 for integrating @stephenbaidu's patch

@egerlach
Copy link

egerlach commented Jul 1, 2015

You can also pull from my branch until it is merged. It incorporates @stephenbaidu's changes.

@slava-vishnyakov
Copy link

👍 for the fix from @stephenbaidu , thanks!

@srigi
Copy link

srigi commented Jul 9, 2015

It looks like this project is abandoned by original author. Can you suggest good alternative?

@dmr
Copy link

dmr commented Jul 30, 2015

Cool, @srigi did you find any?

@masodev
Copy link

masodev commented Jul 30, 2015

My issues were resolved after upgrading. Please refer to:
#76 (comment)

@srigi
Copy link

srigi commented Jul 31, 2015

@dmr yes, I'm really happy with Flink/dokku-psql-single-container. Don't be scared that there isn't any link command. It will auto-link to app container with the same name.

josegonzalez added a commit to josegonzalez/dokku-pg-plugin that referenced this issue Sep 24, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants