Code Monkey home page Code Monkey logo

Comments (3)

jwerak avatar jwerak commented on August 24, 2024

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.

trickbooter avatar trickbooter commented on August 24, 2024

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.

trickbooter avatar trickbooter commented on August 24, 2024

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)

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.