Comments (15)
+1
from dokku-pg-plugin.
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
from dokku-pg-plugin.
Same issue here!
from dokku-pg-plugin.
Same here. I have Docker 1.7.0
from dokku-pg-plugin.
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'
from dokku-pg-plugin.
+1
from dokku-pg-plugin.
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.
from dokku-pg-plugin.
@stephenbaidu +1! Works for me! Thanks!
from dokku-pg-plugin.
+1 for integrating @stephenbaidu's patch
from dokku-pg-plugin.
You can also pull from my branch until it is merged. It incorporates @stephenbaidu's changes.
from dokku-pg-plugin.
👍 for the fix from @stephenbaidu , thanks!
from dokku-pg-plugin.
It looks like this project is abandoned by original author. Can you suggest good alternative?
from dokku-pg-plugin.
Cool, @srigi did you find any?
from dokku-pg-plugin.
My issues were resolved after upgrading. Please refer to:
#76 (comment)
from dokku-pg-plugin.
@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.
from dokku-pg-plugin.
Related Issues (20)
- Invalid port number in postgresql:link if app and db names is different. HOT 1
- Unable to install HOT 2
- Assumption that docker0 has IP 172.17.42.1
- Cannot start container : port has already been allocated HOT 1
- Rails unable to access through credential... HOT 1
- Rails database.yml file not parsing correctly HOT 7
- Multiple Databases, crossover? HOT 1
- dump command available when postgresql-client not installed HOT 1
- dokku-pg-plugin does not use DOKKU_NOT_IMPLEMENTED_EXIT, leads to misbehaviour with unknown commands
- Unicode
- Multiple Apps, same database HOT 1
- Host and Port information are missing HOT 4
- DB automatic unlink HOT 1
- postgresql:dump could not change directory to "/root"
- How can I upgrade to postgres 9.4? HOT 5
- Connection timed out HOT 1
- 'psql' not found when executing dokku postgresql:console <db> HOT 2
- "Your docker version is too old, please update it" HOT 5
- Branch josegonzalez/dokku-pg-plugin out of date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokku-pg-plugin.