Comments (7)
I have the same problem on Ubuntu 14.04 after update:
:
$docker logs skydock$ docker --version
[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 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.
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.
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.
So the project is dead, if this bug is not fixed, right ?
from skydock.
@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.
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.
yeah we are going to update our software too. Thanks for the information.
from skydock.
Related Issues (20)
- Error while building docker image
- Unable to get SkyDock (SkyDNS) running on Docker-For-Mac Beta Version 1.12.0-rc4-beta19 (build: 10258) HOT 2
- error restoring containers: json: cannot unmarshal string into Go value of type docker.State HOT 1
- It can not add record when image name like [REGISTRYHOST/][USERNAME/]NAME[:TAG]
- Docker Containers cannot access internet and each other with skydock HOT 1
- cannot find package "github.com/crosbymichael/log"
- Merge with registrator HOT 2
- sky dns register containers with image name?
- Is it possible to pass the SkyDNS/SkyDock hostnames as own hostnames into containers? HOT 1
- SkyDNS/SkyDock vs docker-compose HOT 8
- IPV6/AAAA support HOT 1
- Docker container domain name not accessible from application code
- SkyDock / containers unable to resolve under Centos 7.1 Docker 1.7.1 HOT 1
- docker unix socket not available in boot2docker, use tcp instead HOT 2
- Strange Service Issue
- skydock on Windows 7? HOT 1
- Is skydock still under-development? HOT 4
- Just won't work on my mac either with compose or as a one-off HOT 1
- error starting after docker update to 1.11.0 HOT 2
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 skydock.