docs: update 'uc service rm' description that volumes are preserved

This commit is contained in:
Pasha Sviderski
2025-11-20 16:36:36 +10:00
parent f6d75d507c
commit 74c7738bc3
3 changed files with 22 additions and 1 deletions
+6 -1
View File
@@ -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
+8
View File
@@ -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]
``` ```