Dockerc
Note: this is alpha software. The interfaces are not stable.
A lightweight docker client that focuses on:
- returning simple data structures instead of any defined object model
- normalization of parameters
- exceptions thrown in exceptional cases
- explicit code to reduce confusion
Installation
Add this line to your application's Gemfile:
gem 'dockerc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dockerc
Usage
c = Dockerc::Client.new
c = Dockerc::Client.new(docker_url: 'http://localhost:4243')
c.pull_image 'gorsuch/litterbox'
c.create_container :image => 'gorsuch/litterbox', :cmd => 'date'
c.containers
Contributing
- Fork it ( http://github.com//dockerc/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request