ashkrosh / dkenv

A docker version switcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DKENV

dkenv is a tool that downloads Docker versions for you, keeps track of your versions, and lets you switch between docker versions on the fly. You can also specify the apiversion on the command line and dkenv will select the correct docker version.

Designed to bypass the dreaded:

2014/08/26 14:21:03 Error response from daemon: client and server don't have same version (client : 1.13, server: 1.12)

Usage

$ dkenv client 1.6.0
OR
$ dkenv api 1.18

dkenv stores the docker files in ~/.dkenv and creates a symlink in /usr/local/bin

Full list of options

usage: dkenv [<flags>] <command> [<args> ...]

Flags:
  --help             Show help (also see --help-long and --help-man).
  --bindir="/usr/local/bin"
                     Directory to create symlinks for Docker binaries
  --homedir=HOMEDIR  Override automatically found homedir
  --dkenvdir="~/.dkenv"
                     Directory to store Docker binaries
  -d, --debug        Enable debug output
  --version          Show application version.

Commands:
  help [<command>...]
    Show help.

  client <version>
    Download/switch Docker binary by *client* version

  api <version>
    Download/switch Docker binary by *API* version

  list
    List downloaded/existing Docker binaries

Contributions

Contributions are more than welcome. Bug reports with specific reproduction steps are great. If you have a code contribution you'd like to make, open a pull request with suggested code.

Pull requests should:

  • Clearly state their intent in the title
  • Have a description that explains the need for the changes
  • Include tests!
  • Not break the public API
  • Add yourself to the CONTRIBUTORS file. I might forget.

If you are simply looking to contribute to the project, taking on one of the items in the "Future Additions" section above would be a great place to start. Ping us to let us know you're working on it by opening a GitHub Issue on the project.

By contributing to this project you agree that you are granting New Relic a non-exclusive, non-revokable, no-cost license to use the code, algorithms, patents, and ideas in that code in our products if we so choose. You also agree the code is provided as-is and you provide no warranties as to its fitness or correctness for any purpose

Copyright (c) 2015 New Relic, Inc. All rights reserved.

About

A docker version switcher

License:MIT License


Languages

Language:Go 100.0%