1e54bca833
cli/trust: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:18 +01:00
58cf16da45
cli/manifest: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:17 +01:00
cca80cdddd
cli/context: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:16 +01:00
71575ab3b5
cli/config: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:15 +01:00
b9f0340b68
cli/compose: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:15 +01:00
3f7e7bf9d2
cli/command: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:14 +01:00
cca73bff41
cli/command/volume: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:13 +01:00
b5dce3c9e6
cli/command/trust: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:12 +01:00
e0299ff862
cli/command/system: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:11 +01:00
78cb61c61c
cli/command/swarm: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:11 +01:00
d59330f40d
cli/command/stack: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:10 +01:00
d1f26de646
cli/command/service: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:09 +01:00
c558df7ced
cli/command/secret: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:08 +01:00
3b3a0b898f
cli/command/registry: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:07 +01:00
f61aab59f7
cli/command/plugin: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:07 +01:00
9bdeb09ae9
cli/command/node: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:06 +01:00
f28c063e2f
cli/command/context: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:05 +01:00
43795ec8f7
cli/command/manifest: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:42:04 +01:00
d14b5bff80
cli/command/image: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:41:55 +01:00
76b47359cb
cli/command/context: remove deprecated io/ioutil and use t.TempDir()
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:41:50 +01:00
e946bf0804
cli/command/container: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:36:23 +01:00
bc1790c5c2
cli/command/config: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:36:08 +01:00
8dc53344e0
cli/command/checkpoint: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:35:51 +01:00
df7adf4aa3
Merge pull request #3434 from howardjohn/json/unmarshal-pointer
...
Fix incorrect pointer inputs to `json.Unmarshal`
2022-02-25 12:06:10 +01:00
cb65bd4de8
Merge pull request #3436 from ndeloof/public_RunExec
...
publish RunExec for use by docker/compose
2022-02-25 11:43:13 +01:00
1c5256d8e1
Merge pull request #3442 from thaJeztah/drop_kube_cleanup_test
...
update/remove various tests and options related to kubernetes support
2022-02-25 11:15:14 +01:00
e38e6c51ff
bring back and expose BuildKitEnabled func
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-24 17:57:56 +01:00
ee9d17caec
cli/context: update package documentation
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 17:53:21 +01:00
242857dd81
update/remove various tests and options related to kubernetes support
...
Remove various tests and utilities related to testing kubernetes support
Also removing the Kubernetes and DefaultStackOrchestrator from CreateOptions
and UpdateOptions, instead updating the flags to not be bound to a variable.
This might break some consumers of those options, but given that they've become
non-functional, that's probably ok (otherwise they may ignore the deprecation
warning and end up with non-functional code).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 17:53:18 +01:00
2d268392d1
publish RunExec for use by docker/compose
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2022-02-24 16:31:24 +01:00
467e650d4c
formatter: mark KubernetesEndpoint templating option as deprecated
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 13:36:01 +01:00
6ea2767289
config: mark stackOrchestrator option as deprecated
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 13:35:03 +01:00
16ece9bb82
system/version: remove dead-code
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 12:26:18 +01:00
1924bc9f0f
stack/swarm: remove unneeded getStackServiceFilter()
...
It was now an alias for getStackFilter, so no longer needed
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 12:26:15 +01:00
cff010c61f
context export: remove docker context export --kubeconfig options
...
Removes the --kubeconfig flag, and the corresponding ExportOptions.Kubeconfig,
as well as special handling for kubeconfig export, as it's no longer used.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-24 12:26:09 +01:00
ee97fe95bc
Fix incorrect pointer inputs to json.Unmarshal
...
See https://github.com/howardjohn/go-unmarshal-double-pointer for more
info on why this is not safe and how this is detected.
Signed-off-by: John Howard <howardjohn@google.com >
2022-02-22 13:08:37 -08:00
193ede9b12
remove obsolete mutli-orchestrator support
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2022-02-22 15:28:12 +01:00
1d48749c1c
warn user kubernetes is deprecated and options won't be stored in context
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2022-02-22 13:47:34 +01:00
7b9580df51
Drop support for (archived) Compose-on-Kubernetes
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2022-02-22 13:47:34 +01:00
bce65f0edc
builder: simplify error generation, and rephrase error/warning
...
With this change:
echo 'FROM busybox' | DOCKER_BUILDKIT=1 docker build -
ERROR: BuildKit is enabled but the buildx component is missing or broken.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
echo 'FROM busybox' | docker build -
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 2.048kB
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-03 10:38:05 +01:00
4d8e45782b
builder: fallback to legacy
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-03 10:38:05 +01:00
6fef143dbc
Set buildx as default builder
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-03 10:38:05 +01:00
08a1ccc60a
Remove support for encrypted TLS private keys
...
> Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since
> it does not authenticate the ciphertext, it is vulnerable to padding oracle
> attacks that can let an attacker recover the plaintext
From https://go-review.googlesource.com/c/go/+/264159
> It's unfortunate that we don't implement PKCS#8 encryption so we can't
> recommend an alternative but PEM encryption is so broken that it's worth
> deprecating outright.
This feature allowed using an encrypted private key with a supplied password,
but did not provide additional security as the encryption is known to be broken,
and the key is sitting next to the password in the filesystem. Users are recommended
to decrypt the private key, and store it un-encrypted to continue using it.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-01-27 14:26:32 +01:00
48cbe0bfa1
Merge pull request #3264 from coryb/fix-data-race
...
fix innocuous data-race when config.Load called in parallel
2022-01-27 10:26:56 +01:00
dfb39e9e5f
Fix Typos
...
This commit fixes spelling mistakes (typos) at a few places in the codebase.
Signed-off-by: Amey Shrivastava <72866602+AmeyShrivastava@users.noreply.github.com >
2021-12-20 01:49:19 +05:30
ed86571bfa
Merge pull request #3256 from thaJeztah/cleanup_rootcommand
...
cli.SetupRootCommand(): minor cleanup
2021-12-08 11:31:59 +01:00
4d93717ae5
ci: github actions test workflow
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-12-07 14:50:22 +01:00
8b85274d26
Fix typo
...
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com >
2021-11-05 18:10:51 +01:00
3fb4fb83df
Merge pull request #3245 from thaJeztah/remove_stopsignal_default
...
create/run: remove default --stop-signal
2021-11-02 12:17:39 +01:00
46f8c8b926
Merge pull request #3322 from samuelkarp/ensure-default-auth-config
...
registry: ensure default auth config has address
2021-10-15 12:59:56 +02:00