Skip to content
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

Skydock can't start anymore since Docker 1.11 #101

Open
xflash opened this issue Apr 26, 2016 · 7 comments
Open

Skydock can't start anymore since Docker 1.11 #101

xflash opened this issue Apr 26, 2016 · 7 comments

Comments

@xflash
Copy link

xflash commented Apr 26, 2016

Hi,

Since an update to docker 1.11.0 (API 1.23) I can't start anymore skydock :

[info] 1461666680 skydock: loading plugins from /plugins/default.js
[info] 1461666680 skydock: skydns URL: http://172.17.0.27:8080
[debug] 1461666680 skydock: starting restore of containers
[fatal] 1461666680 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

Apparently due to some change in the Docker status event ?

Thanks for your help !

@SergeyDubovitsky
Copy link

SergeyDubovitsky commented Apr 26, 2016

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

@emilb
Copy link

emilb commented Apr 28, 2016

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.

@vany-egorov
Copy link
Contributor

vany-egorov commented Jun 22, 2016

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
...

@athlordJojo
Copy link

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

@crosbymichael
Copy link
Owner

@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

@crosbymichael
Copy link
Owner

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.

@athlordJojo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants