Dockerpage
Dockerpage is a Ruby gem that provides a terminal user interface (TUI) for managing Docker containers.
Features
- List all Docker containers
- Display container details including name, image, IP address, and ports
- Select and interact with containers using keyboard shortcuts
- Copy container IP address to clipboard
- Open container web interface in browser
- Stop selected container
Installation
Add this line to your application's Gemfile:
gem 'dockerpage'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install dockerpage
Usage
Run the dockerpage
command to launch the TUI:
$ dockerpage
Keyboard shortcuts
j
: Move selection downk
: Move selection upc
: Copy selected container's IP address to clipboardl
: Open selected container's web interface in browserx
: Stop selected containerq
: Quit the application
Development
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dockerpage.
License
The gem is available as open source under the terms of the MIT License.