Important!
Implemented some docker options only.
cli-to-docker-compose
Conver docker cli to docker-compose.yml format
Installation
Install using npm:
npm install -g cli-to-docker-compose
Usage
for example:
cli-to-docker-compose docker run -d --cap-add SYS_PTRACE --name netdata -v /proc:/host/proc:ro -v /sys:/host/sys:ro -p 19999:19999 titpetric/netda
output:
netdata:
image: titpetric/netda
cap_add:
- SYS_PTRACE
volumes:
- '/proc:/host/proc:ro'
- '/sys:/host/sys:ro'
ports:
- '19999:19999'
Contributing
Please submit all issues and pull requests to the Ti-webdev/cli-to-docker-compose repository!
Tasks
List available tasks using gulp help
.
Tests
Run tests using npm test
or gulp test
.
Support
If you have any problem or suggestion please open an issue here.