feat: add :pause subcommand and make :stop subcommand actually remove the container

This commit is contained in:
Jose Diaz-Gonzalez
2022-12-26 17:39:49 -05:00
parent d3a7a72960
commit e2a72610c8
7 changed files with 72 additions and 10 deletions

View File

@@ -42,6 +42,7 @@ mongo:linked <service> <app> # check if the mongo service
mongo:links <service> # list all apps linked to the mongo service
mongo:list # list all mongo services
mongo:logs <service> [-t|--tail] <tail-num-optional> # print the most recent log(s) for this service
mongo:pause <service> # pause a running mongo service
mongo:promote <service> <app> # promote service <service> as MONGO_URL in <app>
mongo:restart <service> # graceful shutdown and restart of the mongo service container
mongo:start <service> # start a previously stopped mongo service
@@ -371,12 +372,25 @@ dokku mongo:start lollipop
dokku mongo:stop <service>
```
Stop the service and the running container:
Stop the service and removes the running container:
```shell
dokku mongo:stop lollipop
```
### pause a running mongo service
```shell
# usage
dokku mongo:pause <service>
```
Pause the running container for the service:
```shell
dokku mongo:pause lollipop
```
### graceful shutdown and restart of the mongo service container
```shell