mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
docs: update 'uc service rm' description that volumes are preserved
This commit is contained in:
@@ -19,7 +19,12 @@ func NewRmCommand() *cobra.Command {
|
|||||||
Use: "rm SERVICE [SERVICE...]",
|
Use: "rm SERVICE [SERVICE...]",
|
||||||
Aliases: []string{"remove", "delete"},
|
Aliases: []string{"remove", "delete"},
|
||||||
Short: "Remove one or more services.",
|
Short: "Remove one or more services.",
|
||||||
Args: cobra.MinimumNArgs(1),
|
Long: `Remove one or more services.
|
||||||
|
|
||||||
|
The volumes used by the services are preserved and should be removed separately
|
||||||
|
with 'uc volume rm'. Anonymous Docker volumes (automatically created from VOLUME
|
||||||
|
directives in image Dockerfiles) are automatically removed with their containers.`,
|
||||||
|
Args: cobra.MinimumNArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
uncli := cmd.Context().Value("cli").(*cli.CLI)
|
uncli := cmd.Context().Value("cli").(*cli.CLI)
|
||||||
opts.services = args
|
opts.services = args
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
Remove one or more services.
|
Remove one or more services.
|
||||||
|
|
||||||
|
## Synopsis
|
||||||
|
|
||||||
|
Remove one or more services.
|
||||||
|
|
||||||
|
The volumes used by the services are preserved and should be removed separately
|
||||||
|
with 'uc volume rm'. Anonymous Docker volumes (automatically created from VOLUME
|
||||||
|
directives in image Dockerfiles) are automatically removed with their containers.
|
||||||
|
|
||||||
```
|
```
|
||||||
uc rm SERVICE [SERVICE...] [flags]
|
uc rm SERVICE [SERVICE...] [flags]
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
Remove one or more services.
|
Remove one or more services.
|
||||||
|
|
||||||
|
## Synopsis
|
||||||
|
|
||||||
|
Remove one or more services.
|
||||||
|
|
||||||
|
The volumes used by the services are preserved and should be removed separately
|
||||||
|
with 'uc volume rm'. Anonymous Docker volumes (automatically created from VOLUME
|
||||||
|
directives in image Dockerfiles) are automatically removed with their containers.
|
||||||
|
|
||||||
```
|
```
|
||||||
uc service rm SERVICE [SERVICE...] [flags]
|
uc service rm SERVICE [SERVICE...] [flags]
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user