Comments (3)
My guess is that README.md example is missing linking to skydns even though its described.
Can you try running skydock container with following command:
docker run -ti --rm \
-v /var/run/docker.sock:/docker.sock \
--dns 172.17.42.1 \
--link="skydns" \
--name skydock \
crosbymichael/skydock -ttl 30 -environment dev -s /docker.sock -domain docker -name skydns
from skydock.
I am having the same issue. I have also been trying to get docker-consul working and cannot. I think these issues have a common problem on my machine.
adding the --link flag requires a name:alias syntax. Adding --link=skydns:sktdns links the contains
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b300e372d893 crosbymichael/skydock:latest /go/bin/skydock -ttl 2 minutes ago Up 2 minutes skydock
213129e537b7 crosbymichael/skydns:latest skydns -http 0.0.0.0 5 minutes ago Up 5 minutes 8080/tcp, 172.17.42.1:53->53/udp skydns,skydock/skydns
but in the example, after bringing up redis then connecting the redis-cli, the redis-cli cannot see redis1.redis.dev.docker.
From the host I can dig @172.17.42.1 -p 53 redis1.redis.dev.docker and I get a response:
$ dig @172.17.42.1 redis1.redis.dev.docker
;; QUESTION SECTION:
;redis1.redis.dev.docker. IN A
;; ANSWER SECTION:
redis1.redis.dev.docker. 29 IN A 172.17.0.4
However, from within any container name resolution fails (I can ping the redis IP, I just cannot resolve redis1.redis.dev.docker from within a container).
$ docker run -i -t ubuntu
root@e49bace58b52:/# ping redis1.redis.dev.docker
ping: unknown host redis1.redis.dev.docker
root@e49bace58b52:/# ping 172.17.0.4
PING 172.17.0.4 (172.17.0.4) 56(84) bytes of data.
64 bytes from 172.17.0.4: icmp_seq=1 ttl=64 time=0.216 ms
Any help greatly appreciated.
from skydock.
Upon further investigation this seems to be a security issue. I have stopped the docker service and run the docker -d daemon (foreground style as per the readme) and everything works fine. I think the issue for me relates to the publishing on the dns service on the docker bridge. Still investigating.
from skydock.
Related Issues (20)
- Skydock can't start anymore since Docker 1.11 HOT 7
- 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.