docker-api
A lightweight Ruby client for the Docker Remote API
File Explorer
Download Latest Version (.zip)- unit_test.yml
- base.rb
- connection.rb
- container.rb
- error.rb
- event.rb
- exec.rb
- image.rb
- messages.rb
- messages_stack.rb
- network.rb
- rake_task.rb
- util.rb
- version.rb
- volume.rb
- hijack.rb
- docker-api.rb
- docker.rb
- docker
- docker.conf
- install_docker.sh
- install_podman.sh
- connection_spec.rb
- container_spec.rb
- event_spec.rb
- exec_spec.rb
- image_spec.rb
- messages_spec.rb
- messages_stack.rb
- network_spec.rb
- util_spec.rb
- volume_spec.rb
- Dockerfile
- Dockerfile
- export.tar
- load.tar
- cov_spec.rb
- docker_spec.rb
- spec_helper.rb
- .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 RecommendedPrerequisites
- 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
EasyPrerequisites
$ 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
Was this content helpful?
(0 ratings)
