Public | Automated Build

Last pushed: 10 days ago
Short Description
Short description is empty for this repo.
Full Description

etcdctl

Check docs at https://coreos.com/docs/distributed-configuration/getting-started-with-etcd

Build

make

Usage

docker run -e ETCD_ENDPOINT="172.17.42.1:4001" peopleperhour/etcdctl
NAME:
   etcdctl - A simple command line client for etcd.

USAGE:
   etcdctl [global options] command [command options] [arguments...]

VERSION:
   2.0.13

COMMANDS:
   backup       backup an etcd directory
   cluster-health   check the health of the etcd cluster
   mk           make a new key with a given value
   mkdir        make a new directory
   rm           remove a key
   rmdir        removes the key if it is an empty directory or a key-value pair
   get          retrieve the value of a key
   ls           retrieve a directory
   set          set the value of a key
   setdir       create a new or existing directory
   update       update an existing key with a given value
   updatedir        update an existing directory
   watch        watch a key for changes
   exec-watch       watch a key for changes and exec an executable
   member       member add, remove and list subcommands
   import       import a snapshot to a cluster
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug          output cURL commands which can be used to reproduce the request
   --no-sync            don't synchronize cluster information before sending request
   --output, -o 'simple'    output response in the given format (`simple`, `extended` or `json`)
   --peers, -C          a comma-delimited list of machine addresses in the cluster (default: "127.0.0.1:4001")
   --cert-file          identify HTTPS client using this SSL certificate file
   --key-file           identify HTTPS client using this SSL key file
   --ca-file            verify certificates of HTTPS-enabled servers using this CA bundle
   --help, -h           show help
   --version, -v        print the version

Tips

Alias etcdctl to docker run -e ETCD_ENDPOINT={$CLUSTER_NODE}:4001 peopleperhour/etcdctl

Notes

  1. This images uses Alpine, https://github.com/gliderlabs/docker-alpine, a small footprint Docker OS with a basic package manager in order
    to get a small image that would contain bash and curl. The final image should be ~14 MB.

  2. This is an automated build so I chose to not use gliderlabs/alpine:latest but resorted in stable 3.1 tag.

Docker Pull Command
Owner
peopleperhour
Source Repository