Coder Social home page Coder Social logo

Comments (7)

SergeyDubovitsky avatar SergeyDubovitsky commented on August 15, 2024

I have the same problem on Ubuntu 14.04 after update:

:$docker logs skydock
[info] 1461680379 skydock: loading plugins from /plugins/default.js
[info] 1461680379 skydock: skydns URL: http://172.17.0.2:8080
[debug] 1461680379 skydock: starting restore of containers
[fatal] 1461680379 skydock: error restoring containers: json: cannot unmarshal string into Go value of type docker.State
json: cannot unmarshal string into Go value of type docker.State
:
$ docker --version
Docker version 1.11.0, build 4dc5990

At the moment, I solved the problem downgrade to version 1.10:

sudo apt-get install docker-engine=1.10.3-0~trusty

from skydock.

emilb avatar emilb commented on August 15, 2024

Yes, there has been an API change since docker 1.11.x
https://docs.docker.com/engine/reference/api/docker_remote_api/#v1-23-api-changes

I think it's the GET /containers/json that causes the problem now. @crosbymichael, would you like to have a look? I've come to like and use skydock and skydns for a lot of my projects.

from skydock.

vany-egorov avatar vany-egorov commented on August 15, 2024

You can use native docker networking instead https://docs.docker.com/engine/userguide/networking/dockernetworks/

docker network create --driver bridge my_network_01;
docker network ls;

docker run --name my-container-01-01  -d \
        --net=my_network_01 \
        -h my-container-01-01 \
        my-image-01;

docker run --name my-container-01-02  -d \
        --net=my_network_01 \
        -h my-container-01-02  \
        my-image-01;

docker network inspect my_network_01;

# or you can use connect instead of --net
docker network connect network_01 my-container-01-01;
docker network connect network_01 my-container-01-02;
docker network inspect my_network_01;

# and second network
docker network create --driver bridge my_network_02;
docker network ls;

docker run --name my-container-02-01  -d \
        -h my-container-02-01 \
        my-image-02;

docker network connect network_01 my-container-02-01;
docker network connect network_02 my-container-02-01;
docker network connect network_02 my-container-01-01;
docker network connect network_02 my-container-01-02;

# you can now use them (you need sshd inside)
ssh root@$(docker inspect --format '{{ .NetworkSettings.Networks.my_network_01.IPAddress }}' my-container-01-01)
# or
ssh root@$(docker inspect --format '{{ .NetworkSettings.Networks.my_network_02.IPAddress }}' my-container-01-01)

# inside my-container-01-01
ping my-container-01-02
...
ping my-container-02-01
...

from skydock.

athlordJojo avatar athlordJojo commented on August 15, 2024

So the project is dead, if this bug is not fixed, right ?

from skydock.

crosbymichael avatar crosbymichael commented on August 15, 2024

@athlordJojo not dead but there is no need fore this project anymore for people who are running the new version of docker that does this all internally. I believe 1.9+ will have automatic DNS discovery for your containers and swarm adds discover + and overlay network.

I'm just keeping the project around for existing users that have not upgraded yet

from skydock.

crosbymichael avatar crosbymichael commented on August 15, 2024

You honestly should not be using this anymore if you are running docker 1.11+. Docker is handling this all for you now and it is much simpler.

from skydock.

athlordJojo avatar athlordJojo commented on August 15, 2024

yeah we are going to update our software too. Thanks for the information.

from skydock.

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.