Git Product home page Git Product logo

Comments (7)

progrium avatar progrium commented on June 7, 2024

Alright. Not sure how to test it, but the next release should be using that version of dockerclient...

from registrator.

pythianliappis avatar pythianliappis commented on June 7, 2024

If you want to test it, a very simple way is via shipyard. See referenced closed ticket.

from registrator.

tayzlor avatar tayzlor commented on June 7, 2024

I'm seeing the very same thing via these error messages -

2014/12/15 15:00:01 registrator: unable to inspect container: f7c5587e633d json: cannot unmarshal number 6.7108864e+07 into Go value of type int64

When launching containers from inside the Mesos Marathon Framework.

from registrator.

pythianliappis avatar pythianliappis commented on June 7, 2024

Consider upgrading your registrator container; latest builds of registrator include a newer version of fsouza/go-docker which have resolved the problem for me.

from registrator.

tayzlor avatar tayzlor commented on June 7, 2024

Are you sure? As I build from a fresh docker image from the registry (also using 'latest' build tag - which should be 0.4.0). Also still in master branch of the git repo - https://github.com/progrium/registrator/blob/master/Godeps/_workspace/src/github.com/fsouza/go-dockerclient/container.go#L161-L162

Also this issue is still open, which suggests its not resolved? Although it looks like it should be since the PR above was merged in July? Though I am fairly new to docker/registrator so maybe I am doing something wrong on my end.

from registrator.

pythianliappis avatar pythianliappis commented on June 7, 2024

This: https://github.com/progrium/registrator works correctly for me.

You raised some good points so I decided to dig in a bit deeper.

Seems that the old float values I could see for memory (using docker inspect) are now integer values!
This appears to have happened after I upgraded docker from 1.3.1 to 1.3.2 (using the lxc-docker deb package in ubuntu).

It seems that this was resolved some time ago: moby/moby#6246
and seems to be handled in the docker code: https://github.com/docker/docker/blob/master/engine/env.go#L230-L234

but perhaps it only got included in 1.3.2.

What is the docker version you are running?

from registrator.

tayzlor avatar tayzlor commented on June 7, 2024

Yup, Doh, I was running docker 1.0.1 (for some reason), after upgrading to docker 1.4.0 the issue is resolved. Thanks for the help investigating!

from registrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.