Readme updated

This commit is contained in:
Rafał Siwiec 2018-09-24 13:27:26 +02:00
parent 348c6cfcb3
commit a5f4deab39

View file

@ -12,13 +12,18 @@ npm install --save-dev docker-compose
`docker-compose` current supports these commands:
* `up(options)` - create and start containers - always uses the `-d` flag due to non interactive mode
* `upAll(options)` - Create and start containers - always uses the `-d` flag due to non interactive mode
* `upMany(services, options)` - Create and start containers specified in `services` - always uses the `-d` flag due to non interactive mode
* `upOne(service, options)` - Create and start container specified in `service` - always uses the `-d` flag due to non interactive mode
* `down(options)` - Stop and remove containers, networks, images, and volumes
* `kill(options)` - Kill containers
* `stop(options)` - Stop services
* `rm(options)` - Remove stopped containers - always uses the `-f` flag due to non interactive mode
* `exec(container, command, options)` - Exec `command` inside `container`, uses `-T` to properly handle stdin & stdout
* `run(container, command, options)` - Run `command` inside `container`, uses `-T` to properly handle stdin & stdout
* `buildAll(options)` - Build all images
* `buildMany(services, options)` - Build images of specified services
* `buildOne(service, options)` - Build image of specified service
All commands return a `Promise({object})` with an stdout and stderr strings
```javascript