New issue

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

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

Already on GitHub? Sign in to your account

Docker::Error::ServerError: json: cannot unmarshal string into Go value of type map[string]interface #266

Closed
mcfiredrill opened this Issue Mar 7, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@mcfiredrill

mcfiredrill commented Mar 7, 2015

$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): darwin/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
$ ./bin/rails c
Loading development environment (Rails 4.1.8)
[1] pry(main)> Docker::VERSION
=> "1.20.0"
[2] pry(main)> Docker::Container.create 'redis'
Docker::Error::ServerError: json: cannot unmarshal string into Go value of type map[string]interface {}
from /Users/tony/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/docker-api-1.20.0/lib/docker/connection.rb:54:in `rescue in request'
``
@mcfiredrill

This comment has been minimized.

Show comment
Hide comment
@mcfiredrill

mcfiredrill Mar 7, 2015

Using the api wrong, sorry.

mcfiredrill commented Mar 7, 2015

Using the api wrong, sorry.

@mcfiredrill mcfiredrill closed this Mar 7, 2015

@xmik

This comment has been minimized.

Show comment
Hide comment
@xmik

xmik Oct 30, 2015

Worth to know that this error comes up as a result of e.g.:

container.exec('some_command')

to get rid of that error: put command string into an array:

container.exec(['some_command'])

Related issue: #285

xmik commented Oct 30, 2015

Worth to know that this error comes up as a result of e.g.:

container.exec('some_command')

to get rid of that error: put command string into an array:

container.exec(['some_command'])

Related issue: #285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment