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

Commit 0fe1aaf

Browse files
Ulysses Souzandeloof
authored andcommitted
Remove target-context flags
Signed-off-by: Ulysses Souza <[email protected]> Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 71ad534 commit 0fe1aaf

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -188,23 +188,6 @@ $ 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 `--target-context` option. If you do not specify one, it will
193-
use the currently active context.
194-
195-
```console
196-
$ docker context create remote --description "remote cluster" --docker host=tcp://<remote-ip>:<remote-port>
197-
Successfully created context "remote"
198-
199-
$ docker context ls
200-
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
201-
default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock https://localhost:6443 (default) swarm
202-
remote remote cluster tcp://<remote-ip>:<remote-port>
203-
204-
$ docker app install myrepo/hello:0.1.0 --target-context remote
205-
...
206-
```
207-
208191
More examples are available in the [examples](examples) directory.
209192

210193
## CNAB

internal/commands/list.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ func listCmd(dockerCli command.Cli) *cobra.Command {
5151
return runList(dockerCli, opts)
5252
},
5353
}
54-
cmd.Flags().StringVar(&opts.targetContext, "target-context", "", "List running Apps on this context")
5554

5655
return cmd
5756
}

internal/commands/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ type credentialOptions struct {
140140
}
141141

142142
func (o *credentialOptions) addFlags(flags *pflag.FlagSet) {
143-
flags.StringVar(&o.targetContext, "target-context", "", "Context on which the application is installed (default: <current-context>)")
144143
flags.StringArrayVar(&o.credentialsets, "credential-set", []string{}, "Use a YAML file containing a credential set or a credential set present in the credential store")
145144
flags.StringArrayVar(&o.credentials, "credential", nil, "Add a single credential, additive ontop of any --credential-set used")
146145
flags.BoolVar(&o.sendRegistryAuth, "with-registry-auth", false, "Sends registry auth")

0 commit comments

Comments
 (0)