docker-api

(β˜… 1,124)

A lightweight Ruby client for the Docker Remote API

  • .gitignore
  • .rspec
  • .simplecov
  • .travis.yml
  • docker-api.gemspec
  • Dockerfile
  • Gemfile
  • LICENSE
  • Rakefile
  • README.md
  • TESTING.md

# Installation Guide

1. Get the code
git clone https://github.com/upserve/docker-api

Downloads the entire project code from GitHub to your computer.

cd docker-api

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
gem 'docker-api'

Type this command into your terminal and run it.

$ gem install docker-api

Type this command into your terminal and run it.

$ sudo docker -d

Type this command into your terminal and run it.

Docker.url = 'tcp://example.com:5422'

Type this command into your terminal and run it.

$ DOCKER_URL=unix:///var/docker.sock irb

Type this command into your terminal and run it.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Ruby

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Ruby Ruby is required to use the bundle command.
$ bundle install

Installs the Ruby libraries listed in the Gemfile.

βœ… If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).

Pulled directly from this repo's README.

// repository documentation