Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flum1025/dort
List port used by container
https://github.com/flum1025/dort
command-line docker linux ruby rubygems terminal-app
Last synced: 15 days ago
JSON representation
List port used by container
- Host: GitHub
- URL: https://github.com/flum1025/dort
- Owner: flum1025
- License: mit
- Created: 2017-07-15T13:21:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T16:44:43.000Z (over 7 years ago)
- Last Synced: 2024-04-26T07:22:46.564Z (6 months ago)
- Topics: command-line, docker, linux, ruby, rubygems, terminal-app
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Dort
List port used by container
## Installation
$ gem install dort
## Usage
$ dort
and help
$ dort -h
Usage: dort [options]
-p, --port show publish ports only
-e, --expose show expose ports only
-l, --list list host port used by containerexample
$ dort -l
HOST_PORTS
80
443
3306
5000
5432
6080
6379
8080
8023
10001
10002
10003
10004
10005### Change socket
If you need to connect to other server or another location socket, you can set access point via DOCKER_URL variables. For example:$ DOCKER_URL=unix:///var/docker.sock dort
$ DOCKER_URL=tcp://example.com:1000 dort## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/flum1025/dort. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Dort project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/dort/blob/master/CODE_OF_CONDUCT.md).