This repository has been archived by the owner. It is now read-only.
docker-api
docker-api
Complete docker api wrapper for Crystal. Based off of the docker-api Ruby Gem.
This is very much alpha software and should be treated as such.
Installation
Add this to your application's shard.yml
:
dependencies:
docker-api:
github: watzon/docker-api
Usage
require "docker-api"
# List versions
version = Docker.version
p version # => #<Docker::Types::Version:0x564e6108fcb0 ...
# Get all containers
containers = Docker::Container.all
first_one = containers.first
# Get info about the container
p first_one.info # => { "Names" => [...], "Image" => "...", ... }
# Remove the container
first_one.remove
# Spin up a new container
container = Docker::Container.create("some-redis", { image: "redis" })
p container.info # => { "Names" => ["some-redis"], "Image" => "redis", ... }
Development
Current features
- API Connector
- Containers
- Events
- Images
- Messages
- Networks
- Volumes
- Services
- Nodes
- Swarm
- Tasks
- Plugins
Hangups
- The docker
/archive
method requires tar packing/unpacking.
Contributing
- Fork it ( https://github.com/watzon/docker-api/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 a new Pull Request
Contributors
- watzon Chris Watson - creator, maintainer
Repository
docker-api
Owner
Statistic
- 8
- 3
- 2
- 0
- 1
- over 5 years ago
- February 16, 2018
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 22:52:56 GMT
Languages