Coder Social home page Coder Social logo

docker-machine-driver-dind's Introduction

Usage

To build and install, make sure you have a Go 1.6 environment and Docker Machine greater than or equal to 0.5.1. Currently, a godep restore is also needed if the deps do not resolve correctly for you.

Then, just run:

$ make && make install

You need to also ensure that you have built and run the image which gets used to spawn the dind containers:

$ cd image && make && cd -

(Ideally this should be pulled automatically, but this hasn't been added to the driver yet; I would be happy to accept such a change as a patch).

After that, configure your Docker client to talk to a daemon instance (e.g. eval $(docker-machine env)) and run the create:

$ docker-machine create -d dind my-first-dind

Creation is pretty speedy because waiting for the machines to boot is usually the most time-consuming part of the create process, but has definitely highlighted some existing issues with the provisioning and ideally could be faster.

Some features, such as Swarm support, will not work properly unless you are creating with --dind-host set to unix:///var/run/docker.sock (the default on Linux). This is because if --dind-host is set to use the socket, the ip command will return the container's IP on the docker0, and consequently these operations will work similarly to how operating on a public IPv4 address does in the standard Machine cloud provider model. If --dind-host is a remote host (e.g. boot2docker), the Docker URL provided for connection will be based on an arbitrary high port NATed from the container to the host's IP address.

docker-machine-driver-dind's People

Contributors

jsirois avatar nathanleclaire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-machine-driver-dind's Issues

build error on mac osx

go get -u github.com/nathanleclaire/docker-machine-driver-dind
# github.com/nathanleclaire/docker-machine-driver-dind
src/github.com/nathanleclaire/docker-machine-driver-dind/driver.go:118: not enough arguments in call to dc.CreateContainer

mac osx 10.10.5
go version go1.6.1 darwin/amd64

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.