Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit a850314

Browse files
committed
Document new --installer-context option
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 8beb2f1 commit a850314

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ $ docker app inspect myrepo/hello:0.1.0
188188
**Note**: Commands like `install`, `upgrade`, `render`, etc. can also be used
189189
directly on Application Packages that are in a registry.
190190

191+
You can specify the Docker endpoint where an application is installed using a
192+
context and the `--context` option. If you do not specify one, it will
193+
use the currently active context.
194+
195+
Whenever you define such a context, the installer image will run in the `default`
196+
context (i.e. on local host). You can use the `--installer-context` to target
197+
another context to run the installer image.
198+
191199
More examples are available in the [examples](examples) directory.
192200

193201
## CNAB

internal/commands/list.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import (
1616
"github.com/spf13/cobra"
1717
)
1818

19-
type listOptions struct {
20-
}
21-
2219
var (
2320
listColumns = []struct {
2421
header string
@@ -39,22 +36,20 @@ var (
3936
)
4037

4138
func listCmd(dockerCli command.Cli) *cobra.Command {
42-
var opts listOptions
43-
4439
cmd := &cobra.Command{
4540
Use: "ls [OPTIONS]",
4641
Short: "List running Apps",
4742
Aliases: []string{"list"},
4843
Args: cli.NoArgs,
4944
RunE: func(cmd *cobra.Command, args []string) error {
50-
return runList(dockerCli, opts)
45+
return runList(dockerCli)
5146
},
5247
}
5348

5449
return cmd
5550
}
5651

57-
func runList(dockerCli command.Cli, opts listOptions) error {
52+
func runList(dockerCli command.Cli) error {
5853
installations, err := getInstallations(dockerCli.CurrentContext(), config.Dir())
5954
if err != nil {
6055
return err

0 commit comments

Comments
 (0)