Giter VIP home page Giter VIP logo

dockercloud-agent's Introduction

dockercloud-agent

What's this?

This is the agent Docker Cloud uses to set up nodes. It's a daemon that will register the host with the DockerCloud API using a user token (Token), and will manage the installation, configuration and ongoing upgrade of the Docker daemon.

For information on how to install it in your host, please check the Bring Your Own Node documentation.

Running

If installing from a .deb or .rpm package, Docker Cloud Agent will be configured in upstart to be launched on boot.

# dockercloud-agent -h
Usage of ./dockercloud-agent:
  -debug
    	Enable debug mode
  -docker-host string
    	Override 'DockerHost'
  -docker-opts string
    	Add additional flags to run docker daemon
  -host string
    	Override 'Host' in the configuration file
  -ngrok-host string
    	ngrok host for NAT tunneling
  -skip-nat-tunnel
    	Skip NAT tunnel
  -standalone
    	Standalone mode, skipping reg with Docker Cloud
  -stdout
    	Print log to stdout
  -token string
    	Override 'Token' in the configuration file
  -uuid string
    	Override 'UUID'  in the configuration file
  -v	show version
   set: Set items in the config file and exit, supported items
          CertCommonName="xxx"
          DockerHost="xxx"
          Host="xxx"
          Token="xxx"
          UUID="xxx"
          DockerOpts="xxx"

Configuration file is located in /etc/dockercloud/agent/dockercloud-agent.conf (JSON file) with the following structure:

{
	"CertCommonName":"",
	"DockerHost":"tcp://0.0.0.0:2375",
	"Host":"https://cloud.docker.com/",
	"Token":"",
	"UUID":"",
	"DockerOpts":""
}

Logging

Logs are stored under /var/log/dockercloud/:

  • agent.log contains the logs of the agent itself
  • docker.log contains the Docker daemon logs

Building

Run make to build binaries and .deb and .rpm packages which will be stored in the build/ folder.

Proxy

If HTTP_PROXY and HTTPS_PROXY is defined, cloud-agent will read and use them. (this is supported by golang natively)

Supported Distributions

Currently supported and tested on:

  • Ubuntu 14.04, 15.04, 15.10
  • CentOS 7
  • Fedora 21, 22
  • Debian 8
  • Red Hat Enterprise Linux 7

Reporting security issues

To report a security issue, please send us an email to [email protected]. Thank you!

dockercloud-agent's People

Contributors

bernardopericacho avatar fermayo avatar scomma avatar tifayuki avatar

Watchers

 avatar  avatar

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.