Commit Graph

10478 Commits

Author SHA1 Message Date
48dbdc6f2d fix(dockerfiles): Update CMD instruction in 'Dockerfile.dev' to use exec form instead of shell form
* https://docs.docker.com/reference/build-checks/json-args-recommended/

Signed-off-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-15 18:32:54 +03:00
b462778491 Merge pull request #5708 from thaJeztah/bump_engine
vendor: github.com/docker/docker 69687190936d (master, v28.0-dev)
2025-01-13 13:47:16 +01:00
0df55307c8 vendor: github.com/docker/docker 69687190936d (master, v28.0-dev)
full diff: 50212d215b...6968719093

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-11 01:17:36 +01:00
4e217ae9c1 Merge pull request #5737 from crazy-max/bake-v6
ci: update bake-action to v6
2025-01-10 20:26:52 +01:00
cc571902bc ci: update bake-action to v6
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2025-01-10 16:45:54 +01:00
8e365dd3d8 Merge pull request #5734 from vvoland/gha-build-xbranches
gha/build: Publish bin image for release branches
2025-01-10 14:51:49 +01:00
987befaeac gha/build: Publish bin image for release branches
We moved to the major release branches with a `.x` suffix and forgot to
adjust this workflow to run on branches like `27.x`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-01-10 14:32:54 +01:00
ff4697d820 Merge pull request #5729 from thaJeztah/cleanup_plugin_install
cli/command/plugin: runCreate: minor cleanup
2025-01-08 18:57:11 +01:00
557afb66d0 Merge pull request #5728 from thaJeztah/vendor_engine
vendor: github.com/docker/docker 50212d215ba7 (master, v28.0-dev)
2025-01-08 18:56:53 +01:00
216674c3e3 vendor: github.com/docker/docker 50212d215ba7 (master, v28.0-dev)
full diff: 6f6c3b9211...50212d215b

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-08 18:11:19 +01:00
bf2dae22de cli/command/plugin: runCreate: minor cleanup
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-08 12:53:20 +01:00
a289f11ac8 vendor: github.com/moby/swarmkit/v2 v2.0.0-20250103191802-8c1959736554
no changes in vendored code

full diff: e8ecf83ee0...8c19597365

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-06 10:28:35 +01:00
667ece32cf Merge pull request #5724 from thaJeztah/deprecate_nondistributable_artifacts
Deprecate configuration for pushing non-distributable artifacts
2025-01-05 14:39:35 +01:00
7e8f94903d docs, man: remove --allow-nondistributable-artifacts flag
This flag is deprecated and no longer functional.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-04 15:18:03 +01:00
760326694d contrib/completion: remove --allow-nondistributable-artifacts flag
This flag is deprecated and no longer functional.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-04 15:18:00 +01:00
2334df1108 Deprecate configuration for pushing non-distributable artifacts
Non-distributable artifacts (also called foreign layers) were introduced in
docker v1.12 to accommodate Windows images for which the EULA did not allow
layers to be distributed through registries other than those hosted by Microsoft.
The concept of foreign / non-distributable layers was adopted by the OCI distribution
spec in [oci#233]. These restrictions were relaxed later to allow distributing
these images through non-public registries, for which a configuration was added
in Docker v17.0.6.0.

In 2022, Microsoft updated the EULA and [removed these restrictions][msft-3645201],
followed by the OCI distribution specification deprecating foreign layers in [oci#965].
In 2023, Microsoft [removed the use of foreign data layers][msft-3846833] for their images,
making this functionality obsolete.

Docker v28.0 deprecates the `--allow-nondistributable-artifacts` daemon flag and
corresponding `allow-nondistributable-artifacts` field in `daemon.json`. Setting
either option no longer takes an effect, but a deprecation warning log is added
to raise awareness about the deprecation. This warning is planned to become an
error in the Docker v29.0.

Users currently using these options are therefore recommended to remove this
option from their configuration to prevent the daemon from starting when
upgrading to Docker v29.0.

The `AllowNondistributableArtifactsCIDRs` and `AllowNondistributableArtifactsHostnames`
fields in the `RegistryConfig` of the `GET /info` API response are also deprecated.
For API version v1.48 and lower, the fields are still included in the response
but always `null`. In API version v1.49 and higher, the field will be omitted
entirely.

[oci#233]: https://github.com/opencontainers/image-spec/pull/233
[oci#965]: https://github.com/opencontainers/image-spec/pull/965
[msft-3645201]: https://techcommunity.microsoft.com/blog/containers/announcing-windows-container-base-image-redistribution-rights-change/3645201
[msft-3846833]: https://techcommunity.microsoft.com/blog/containers/announcing-removal-of-foreign-layers-from-windows-container-images/3846833

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-04 15:16:36 +01:00
8be29ef534 Merge pull request #5725 from thaJeztah/remove_cors_headers_completion
contrib/completion: remove deprecated --api-cors-header
2025-01-04 14:01:51 +01:00
cfa3a0ca27 Merge pull request #5727 from thaJeztah/bump_moby_term
vendor: github.com/moby/term v0.5.2
2025-01-04 02:22:39 +01:00
a139bb293b Merge pull request #5722 from thaJeztah/rm_oom_score_adj
remove remnants of --oom-score-adj daemon config (docs, completion)
2025-01-03 22:42:03 +01:00
2fc32c707b vendor: github.com/moby/term v0.5.2
- update github.com/Azure/go-ansiterm to v0.0.0-20250102033503-faa5f7b0171c
  to fix OSC string terminator parsing.
- add security policy
- update github actions and test against go1.22, go1.23

full diff: https://github.com/moby/term/compare/v0.5.0...v0.5.2

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 22:33:30 +01:00
e1a0c377b7 vendor: github.com/Azure/go-ansiterm faa5f7b0171c
- fix OSC string terminator parsing

diff: d185dfc1b5...faa5f7b017

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 22:32:37 +01:00
f42c0ccd09 contrib/completion: remove deprecated --api-cors-header
This flag was deprecated in docker v27.0, and removed in v28.0 (producing
and error).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 21:26:00 +01:00
2db88599fd contrib/completion: remove --oom-score-adj daemon flag
This flag was deprecated in docker v24.0, and no longer functional
since v25.0; fully removed in v26.0, so we can remove the docs
for this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 20:21:30 +01:00
eb5c507cd1 docs: dockerd: --oom-score-adj flag
This flag was deprecated in docker v24.0, and no longer functional
since v25.0; fully removed in v26.0, so we can remove the docs
for this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 20:20:47 +01:00
5be685e647 Merge pull request #5718 from thaJeztah/remove_isolation_hint
docs, man: remove confusing example for "--isolation"
2025-01-03 14:48:51 +01:00
d1c76538e9 Merge pull request #5719 from dmcgowan/build-context-io-copy
Use io.copy for build context compression
2025-01-03 13:51:50 +01:00
7b37f30da2 Use io.copy for build context compression
The use of pools here is unnecessary and creates a code dependency on
moby library which will move to internal.

The pool does not provide any value here since it is only done for a
single operation and unlikely performed in alongside other operations
which are re-using the buffers many times between garbage collections.

Signed-off-by: Derek McGowan <derek@mcg.dev>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-03 13:45:38 +01:00
7138107e87 Merge pull request #5716 from thaJeztah/vendor_moby_master
vendor: github.com/docker/docker 6f6c3b921180 (master, v28.0.0-dev)
2025-01-02 12:32:32 +01:00
7b7a4c020e docs, man: remove confusing example for "--isolation"
This snippet was added in [docker@38ec5d8][1]. The intent was to indicate
that an empty value is equivalent to passing "default" as value. However,
passing the `--isolation` flag _without a value_ (i.e., no `=` specified)
will fail in many cases, as any string after it will be parsed as value
(e.g. `docker run --isolation busybox` would consider `busybox` as value).

This patch removes these lines as they add more confusion than addressing.

[1]: 38ec5d86a3

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-02 12:15:08 +01:00
25f02bc044 vendor: github.com/docker/docker 6f6c3b921180 (master, v28.0.0-dev)
full diff: a72026acbb...6f6c3b9211

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-01 16:24:28 +01:00
07aca45f5e Merge pull request #5715 from dmcgowan/fix-container-cp-test
Fix container cp test to separate source and destination
2024-12-27 15:33:39 +01:00
8c0cb30515 Fix cp test to separate source and destination
Currently the cp will tar from the same directory it will untar into
simultaneously. There is a race between reading the file and truncating
the file for write, however, the race will not show up with a large
enough buffer on the tar side if buffered before the copy begins.

Also removes the unnecessary deferred removal, the removal is handled by
cleanup and respects the no cleanup env.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-12-26 16:30:45 -08:00
3b49deb8fc Merge pull request #5711 from thaJeztah/bump_engine_step1
vendor: github.com/docker/docker a72026acbbdf (master, v28.0.0-dev)
2024-12-23 14:05:49 +01:00
c8c47b1dd5 golangci-lint: depguard: prevent uses of pkg/system
We no longer use this package; add a linter rule to prevent
accidentally importing it again.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-23 13:51:16 +01:00
76ec0ea2eb vendor: github.com/docker/docker a72026acbbdf (master, v28.0.0-dev)
removes uses of pkg/system

full diff: ad6929339a...a72026acbb

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-23 13:50:59 +01:00
1a9d19131d Merge pull request #5710 from thaJeztah/TestRunCopyFromContainerToFilesystem_simplify
TestRunCopyFromContainerToFilesystem: use Tar without options
2024-12-23 12:30:37 +00:00
a8f83d5d99 TestRunCopyFromContainerToFilesystem: use Tar without options
Just a minor cleanup; use archive.Tar as we're not using other
options here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-23 13:23:39 +01:00
7e73609bb6 Merge pull request #5709 from thaJeztah/sync_depguard
golangci-lint: sync some depguard settings with moby/moby
2024-12-23 12:07:29 +00:00
0c04dc05ba golangci-lint: sync some depguard settings with moby/moby
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-21 15:08:23 +01:00
45648e8e0e Merge pull request #5703 from thaJeztah/bump_engine
vendor: github.com/docker/docker ad6929339acd (master, v28.0.0-dev)
2024-12-20 18:48:35 +01:00
cc65127cb0 vendor: github.com/docker/docker ad6929339acd (master, v28.0.0-dev)
full diff: b249c5ebd2...ad6929339a

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-20 17:58:34 +01:00
46cf6661c9 Merge pull request #5705 from thaJeztah/bump_x_net
vendor: golang.org/x/net v0.33.0
2024-12-20 17:58:02 +01:00
6f47bce41c vendor: golang.org/x/net v0.33.0
contains a fix for CVE-2024-45338 / https://go.dev/issue/70906,
but it doesn't affect our codebase:

    govulncheck -show=verbose ./...
    Scanning your code and 1260 packages across 211 dependent modules for known vulnerabilities...
    ...
    Vulnerability #1: GO-2024-3333
        Non-linear parsing of case-insensitive content in golang.org/x/net/html
      More info: https://pkg.go.dev/vuln/GO-2024-3333
      Module: golang.org/x/net
        Found in: golang.org/x/net@v0.32.0
        Fixed in: golang.org/x/net@v0.33.0

    Your code is affected by 0 vulnerabilities.
    This scan also found 0 vulnerabilities in packages you import and 1
    vulnerability in modules you require, but your code doesn't appear to call these
    vulnerabilities.

full diff: https://github.com/golang/net/compare/v0.32.0...v0.33.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-20 17:12:38 +01:00
2f67b2f3ff Merge pull request #5684 from thaJeztah/gofumpt_go_version
Makefile: use go1.22 semantics for gofumpt
2024-12-18 13:41:08 +01:00
3723f0bde7 Merge pull request #5682 from thaJeztah/bump_golangci_lint
update golangci-lint to v1.62.2
2024-12-18 10:23:34 +00:00
ecd162228f Merge pull request #5695 from thaJeztah/fix_TestEventsFormat
cli/command/system: TestEventsFormat: set cmd.Args to prevent test-failures
2024-12-17 13:02:53 +01:00
0dd6aa8cc3 Merge pull request #5702 from thaJeztah/bump_x_deps
vendor: update golang.org/x/ dependencies for docker/docker
2024-12-17 13:02:23 +01:00
83156e6627 vendor: golang.org/x/net v0.32.0
go maintainers annnounced a security release for this module; this patch
already brings it up to the current version in case the security issue
affects us.

full diff: https://github.com/golang/net/compare/v0.31.0...v0.32.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-16 23:01:20 +01:00
450f6b9955 vendor: golang.org/x/crypto v0.31.0
update to the latest version of this dependency, which has a fix for a
authorization bypass in the ssh package. We don't use this functionality,
so there's no need to backport this change (other than de-noising false positives).

This is CVE-2024-45337 and Go issue https://go.dev/issue/70779.

full diff: https://github.com/golang/crypto/compare/v0.29.0...v0.31.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-16 22:59:33 +01:00
b74302eb50 vendor: golang.org/x/text v0.21.0
no changes in vendored code

full diff: https://github.com/golang/text/compare/v0.20.0...v0.21.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-16 22:58:24 +01:00