mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-19 12:28:43 +00:00
Readme updated
This commit is contained in:
parent
348c6cfcb3
commit
a5f4deab39
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue