dokku / dokku-postgres

a postgres plugin for dokku
MIT License
484 stars 97 forks source link

Error creating a new instance, unkown -p command #83

Closed JohnnyCrazy closed 8 years ago

JohnnyCrazy commented 8 years ago

My Versions:

Running dokku postgres:create blog will result in docker: Error response from daemon: Container command '-p' not found or does not exist..

Trace Output:

+ local SERVICE=blog
+ local SERVICE_ROOT=/var/lib/dokku/services/postgres/blog
++ get_service_name blog
++ declare 'desc=Retrieves a docker service label'
++ declare SERVICE=blog
++ echo dokku.postgres.blog
+ local SERVICE_NAME=dokku.postgres.blog
++ cat /var/lib/dokku/services/postgres/blog/PASSWORD
+ local PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXX
+ local PREVIOUS_ID
++ docker run --name dokku.postgres.blog -v /var/lib/dokku/services/postgres/blog/data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXX --env-file=/var/lib/dokku/services/postgres/blog/ENV -d --restart always --label dokku=service --label dokku.service=postgres postgres:9.5.4
+ ID=XXXXXXXXXXXXXXXXXXXXXXXXX
+ echo XXXXXXXXXXXXXXXXXXXXXXXXX
+ dokku_log_verbose_quiet 'Waiting for container to be ready'
+ declare 'desc=log verbose formatter (with quiet option)'
+ [[ -z '' ]]
+ echo '       Waiting for container to be ready'
       Waiting for container to be ready
+ docker run --rm --link dokku.postgres.blog:postgres dokkupaas/wait -p 5432
docker: Error response from daemon: Container command '-p' not found or does not exist..

Had a look at the history, seems like 031f5e4e3a81bc7165d4bdcc9a0b13945208346c is causing it. Could you try to reproduce this?

josegonzalez commented 8 years ago

Can you pull the latest dokkupaas/wait image and then run the command as it was?

JohnnyCrazy commented 8 years ago

@josegonzalez Sure, gimme a minute.

JohnnyCrazy commented 8 years ago

Working fine now, thanks :+1:

And excuse my PR, moved a little bit too fast