Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Moby to 20.10.17; containerd to 1.6.6; runc to 1.1.2 #310

Merged
merged 145 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
a663508
[20.10] update Go to 1.16.11
thaJeztah Dec 6, 2021
1a0d4e8
[20.10] update Go to 1.16.12
thaJeztah Dec 12, 2021
8f0114b
daemon.WithCommonOptions() fix detection of user-namespaces
thaJeztah Aug 11, 2021
ec1b149
[20.10] update Go to 1.16.13
thaJeztah Jan 13, 2022
cfb5d3a
vendor: github.com/fluent/fluent-logger-golang 1.6.1
sparrc May 25, 2021
6ae9105
vendor: github.com/fluent/fluent-logger-golang v1.8.0
akerouanton Nov 1, 2021
f187b00
fluentd: Turn ForceStopAsyncSend true when async connect is used
akerouanton Nov 1, 2021
f008d0f
daemon/logger: read the length header correctly
kzys Nov 22, 2021
9bcd5b3
daemon/logger: test followLogs' handleDecodeErr case
kzys Dec 9, 2021
36e91a9
daemon/logger: refactor followLogs to write more unit tests
kzys Dec 24, 2021
3b467e7
daemon/logger: replace flaky TestFollowLogsHandleDecodeErr
kzys Dec 24, 2021
61882ab
[20.10] vendor: github.com/docker/distribution v2.8.0
thaJeztah Jan 21, 2022
9621a92
Revert "[20.10] update containerd binary to v1.4.12"
thaJeztah Jan 13, 2022
d83238d
Revert "[20.10] update containerd binary to v1.4.11"
thaJeztah Jan 13, 2022
7beb695
Revert "[20.10] update containerd binary to v1.4.10"
thaJeztah Jan 13, 2022
b74ecce
Revert "[20.10] update containerd binary to v1.4.9"
thaJeztah Jan 13, 2022
88ad7a2
Revert "[20.10] update containerd binary v1.4.8"
thaJeztah Jan 13, 2022
ea3aa0e
Revert "[20.10] update containerd binary to v1.4.7"
thaJeztah Jan 13, 2022
47f952c
Revert "[20.10] update containerd binary to v1.4.6"
thaJeztah Jan 13, 2022
4feafaa
Revert "[20.10] update containerd binary to v1.4.5"
thaJeztah Jan 13, 2022
1d0f586
update containerd binary to v1.5.0
thaJeztah Mar 15, 2021
7ebfc38
update containerd binary to v1.5.1
thaJeztah May 17, 2021
aed47eb
update containerd binary to v1.5.2
thaJeztah May 19, 2021
aab3dbc
Update containerd binary to v1.5.3
thaJeztah Jul 13, 2021
a6af83d
update containerd binary v1.4.8
thaJeztah Jul 19, 2021
10e6d3d
update containerd binary to v1.5.5
thaJeztah Jul 29, 2021
38730e8
info: remove "expected" check for tini version
thaJeztah Aug 23, 2021
833fef2
remove deprecated "nokmem" build-tag for runc
thaJeztah Aug 23, 2021
7aad2fa
Dockerfile: remove GOPROXY override (was for go < 1.14)
thaJeztah Jul 26, 2021
f38f21f
Dockerfile: use version for some utilities instead of commit-sha
thaJeztah Jul 26, 2021
2b8f420
Dockerfile: use "go install" to install utilities
thaJeztah Jul 26, 2021
9392638
Dockerfile: update gotestsum to v1.7.0
thaJeztah Jul 26, 2021
530be00
Update containerd binary to v1.5.6
thaJeztah Oct 1, 2021
7245594
Update containerd binary to v1.5.7
thaJeztah Oct 5, 2021
1665c65
update containerd binary to v1.5.8
thaJeztah Nov 17, 2021
c711179
update runc binary to v1.0.3
AkihiroSuda Dec 6, 2021
2ebd2b8
update containerd binary to v1.5.9
thaJeztah Jan 10, 2022
61b4ba0
daemon/graphdriver/fuse-overlayfs: Init(): fix directory permissions …
thaJeztah Jan 28, 2022
0b4a328
[20.10] Update Go to 1.16.14
thaJeztah Feb 15, 2022
bb20a51
Fix for lack of syncromization in daemon/update.go
Feb 8, 2021
5313d4d
Add RestartPolicy "no" to swagger docs
gesellix Jul 11, 2021
8df969e
Add "changes" query parameter for /image/create to swagger docs
gesellix Jul 11, 2021
ea5c84c
Fix ContainerSummary swagger docs
gesellix Jul 11, 2021
f3d4bf3
Use explicit object names for improved swagger based code generation
gesellix Jul 11, 2021
a5e0dcf
Extract PluginPrivilegeItem as explicit type definition
gesellix Aug 19, 2021
b5a6797
Fix swagger docs to match the opencontainers image-spec
gesellix Jul 11, 2021
c1c1db8
Add RestartPolicy "no" to swagger docs
gesellix Jul 11, 2021
8094c1b
Add "changes" query parameter for /image/create to swagger docs
gesellix Jul 11, 2021
a010fe1
Fix ContainerSummary swagger docs
gesellix Jul 11, 2021
ea1f870
Use explicit object names for improved swagger based code generation
gesellix Jul 11, 2021
f2cacb4
Extract PluginPrivilegeItem as explicit type definition
gesellix Aug 19, 2021
d86be90
Fix swagger docs to match the opencontainers image-spec
gesellix Jul 11, 2021
00ede35
api/swagger: fix up event-types and move to definitions
thaJeztah Aug 21, 2021
36f7d56
api/swagger: rename PluginPrivilegeItem to PluginPrivilege
thaJeztah Aug 21, 2021
c5a8622
api/swagger: move DistributionInspect to definitions
thaJeztah Aug 21, 2021
8e2dc93
api/swagger: fix up event-types and move to definitions
thaJeztah Aug 21, 2021
6d21514
api/swagger: rename PluginPrivilegeItem to PluginPrivilege
thaJeztah Aug 21, 2021
aa5f847
api/swagger: move DistributionInspect to definitions
thaJeztah Aug 21, 2021
14ae78f
Fix typo on the v1.41 changelog
feliperuhland Apr 7, 2021
b24dbab
Fixed exec resize success code in API docs
th0m4s Jan 5, 2022
c28d8ad
Added error codes for exec resize in API docs
th0m4s Jan 5, 2022
014ada9
docs: fixing /exec/{id}/resize response code in API documentation
thaJeztah Jan 10, 2022
b0ba645
api: remove HostConfig.LxcConf field
thaJeztah Jan 20, 2022
62fbd12
docs: remove HostConfig.LxcConf field from API docs
thaJeztah Jan 20, 2022
9942621
vendor: github.com/coreos/etcd v3.3.25
thaJeztah Apr 6, 2021
495b9b7
vendor: bump etcd v3.3.27
kolyshkin Dec 14, 2020
9ae28e4
[20.10] update to go 1.16.15 to address CVE-2022-24921
thaJeztah Mar 4, 2022
5aba719
update containerd binary to v1.5.10
thaJeztah Mar 4, 2022
d0633ae
distribution: retry downloading schema config on retryable error
pete-woods Feb 24, 2022
9604eb8
[20.10] vendor: containerd 7cfa023d95d37076d5ab035003d4839f4b6ba791
thaJeztah Mar 23, 2022
8d4b89f
oci: inheritable capability set should be empty
samuelkarp Jan 31, 2022
af245b7
[20.10] update containerd binary to 1.5.11
thaJeztah Mar 23, 2022
e72cbd2
client: remove unused Platform field from configWrapper
thaJeztah Jul 12, 2021
e1d0fcf
client: remove containerd "platform" dependency
thaJeztah Jul 12, 2021
15d6431
[20.10] bump swarmkit for config size increase
awmirantis Mar 10, 2022
f9b4f4a
Only check if route overlaps routes with scope: LINK
Nossnevs Mar 10, 2022
802d8c0
log error message when receiving an unexpected type error
tonicmuroq Nov 7, 2021
da74183
errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus
thaJeztah Mar 21, 2022
fbbf142
daemon: use RWMutex for stateCounter
thaJeztah Feb 15, 2022
b0e2545
docs/api: update /containers/{id}/wait "condition" parameter (v1.30-v…
thaJeztah Feb 11, 2022
05b93fa
docs/api: add missing 400 response for POST /containers/{id}/wait
thaJeztah Feb 14, 2022
0962499
docs: add missing KernelMemoryTCP to api v1.40 and v1.41
thaJeztah Feb 7, 2022
46139dc
daemon: fix error-message for minimum allowed kernel-memory limit
thaJeztah Feb 7, 2022
6e0d465
api: docs: update docs for /images/{name}/json (API v1.39-v1.41)
thaJeztah Feb 28, 2022
9dab1f3
api: docs: fix warning about comment indentation (API v1.40-v1.41)
thaJeztah Feb 28, 2022
5c6674e
Correct type of Mounts in ContainerSummary in docs
michaelweidmann Mar 13, 2021
b08e4ed
Correct type of Mounts in ContainerSummary in docs (v1.25-v1.40)
thaJeztah Mar 6, 2022
3b0adf1
api: docs: remove deprecated RootFS.BaseLayer (API v1.25-v1.41)
thaJeztah Feb 28, 2022
9ab9043
api: docs: document MountPoint fields (v1.25-v1.41)
thaJeztah Mar 6, 2022
8e3f5e0
api: docs: add IPAMConfig on IPAM (v1.41)
fussybeaver Mar 13, 2022
a513476
docs: cleanup swagger API with multiple examples (v1.25-v1.41)
thaJeztah Mar 15, 2022
ba67f5c
doc: server API Correct ImagesCreate - platform parameter added in 1.32
grooverdan Jun 3, 2020
c11a2cd
api: docs: move Volume examples inline (v1.39-v1.41)
thaJeztah Mar 5, 2022
fe49969
api: docs: move VolumeCreateOptions to definitions (v1.39-v1.41)
thaJeztah Mar 5, 2022
38b3063
api: docs: move ContainerWaitResponse to definitions (v1.39-v1.41)
thaJeztah Mar 5, 2022
52737f0
api: docs: fix indentation of HostConfig.SecurityOpt (v1.39-v1.41)
thaJeztah Mar 5, 2022
3c93c52
[20.10] vendor: github.com/docker/distribution v2.8.1
thaJeztah Apr 4, 2022
c2857e4
Makefile: install buildx from binary release, instead of building
thaJeztah Jan 28, 2021
dcd3b6e
Makefile: update buildx version to v0.6.0
thaJeztah Jul 19, 2021
0ac0fc4
Makefile: update buildx to v0.8.2
thaJeztah Apr 4, 2022
1a51e28
vendor: golang.org/x/sys d19ff857e887eacb631721f188c7d365c2331456
thaJeztah Apr 4, 2021
fd4fe30
vendor: golang.org/x/sys 63515b42dcdf9544f4e6a02fd7632793fde2f72d (f…
thaJeztah Aug 23, 2021
311fdbf
hack/vendor.sh: allow go version to be specified with .0
thaJeztah Aug 23, 2021
aea1298
Update to Go 1.17.0, and gofmt with Go 1.17
thaJeztah Aug 23, 2021
514c7b3
vendor: update archive/tar to match Go 1.17.0
thaJeztah Aug 23, 2021
2265b8b
Update Go to 1.17.1
thaJeztah Sep 15, 2021
0075166
Update Go to 1.17.2
thaJeztah Oct 8, 2021
42d3280
Update Go to 1.17.3
thaJeztah Nov 5, 2021
d453a94
Update Go to 1.17.4
thaJeztah Dec 6, 2021
5a3140d
Update Go to 1.17.5
thaJeztah Dec 12, 2021
bfb1ecd
Update Go to 1.17.6
thaJeztah Jan 13, 2022
81542fc
Update Go to 1.17.7
thaJeztah Feb 15, 2022
42ebe7c
update to go 1.17.8 to address CVE-2022-24921
thaJeztah Mar 4, 2022
488e560
[20.10] update golang to 1.17.9
thaJeztah Apr 19, 2022
3e387bb
update runc binary to v1.1.0
AkihiroSuda Jan 21, 2022
b92f176
update runc binary to v1.1.1
AkihiroSuda Apr 1, 2022
1cc4604
Revert "[20.10] update containerd binary to 1.5.11"
thaJeztah Mar 27, 2022
048ab82
update containerd binary to v1.6.1
thaJeztah Oct 15, 2021
87c77f4
update containerd binary to v1.6.2
thaJeztah Mar 24, 2022
a541f82
update containerd binary to v1.6.3
thaJeztah Apr 27, 2022
adafd33
update containerd binary to v1.6.4
thaJeztah May 4, 2022
1a6d9e2
vendor: update github.com/containerd/cgroups and github.com/cilium/ebpf
42wim May 7, 2022
3a7a7d6
[20.10] update golang to 1.17.10
thaJeztah May 11, 2022
d663107
[20.10] vendor: golang.org/x/sys v0.0.0-20220412211240-33da011f77ad
thaJeztah May 11, 2022
3c60544
Rename Reservation to Reservations in the open API
rumpl May 17, 2022
dd09822
docs: api: /containers/{id}/attach/ws: remove unsupported query-args …
thaJeztah May 18, 2022
81250b9
vendor: libnetwork 2dab5620d4462865c6151e573b3e7fa5d3b8458b
ameyag May 25, 2022
d58c11d
vendor: hcsshim a11a2c44e8a4aa9d66314b1d759ef582df5ab5e8
ameyag May 25, 2022
4802893
[20.10] update golang to 1.17.11
thaJeztah Jun 2, 2022
ed3effa
vendor: libnetwork f6ccccb1c082a432c2a5814aaedaca56af33d9ea
neersighted Jun 2, 2022
bd70a11
Port pkg/system/mknod.go to FreeBSD
akhramov Sep 19, 2021
75bc086
system: unbreak build for darwin
tonistiigi Dec 16, 2021
2acd5c2
update runc binary to v1.1.2
thaJeztah May 12, 2022
01c58c6
update containerd binary to v1.6.5
thaJeztah Jun 4, 2022
3da5310
update containerd binary to v1.6.6
thaJeztah Jun 6, 2022
52750c7
Update dependencies to match containerd 1.6.6 and runc 1.1.2
lmbarros Nov 1, 2022
631882a
Vendor dependencies
lmbarros Nov 1, 2022
4069923
Post-merge tweaks
lmbarros Nov 22, 2022
7d29f8e
Fix compilation errors after dependencies update
lmbarros Nov 1, 2022
c1a516d
Disable new tests that depend on swarm and plugins
lmbarros Aug 30, 2022
7451222
Fix errors with `balena-engine update`
lmbarros Oct 25, 2022
f146fa6
Use containerd's apparmor package to detect if apparmor can be used
thaJeztah Apr 8, 2021
013d027
Use Go 1.17.11, as upstream
lmbarros Dec 8, 2022
c5a6085
Add upstream changelog
lmbarros Nov 4, 2022
ae2500b
Disable builds for linux/386
lmbarros Nov 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
secrets: inherit
with:
# https://github.com/golang/go/blob/master/src/go/build/syslist.go
custom_publish_matrix: "linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/arm64,linux/amd64,linux/386"
custom_publish_matrix: "linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/arm64,linux/amd64"
cloudflare_website: "balena-engine"
13 changes: 13 additions & 0 deletions .versionbot/CHANGELOG.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
- commits:
- subject: Merge upstream v20.10.17
hash: 013d0279ce25791b87a0a0d77686e2cd74f6462a
body: >-
For full changelog see:
https://github.com/balena-os/balena-engine/blob/20.10.17-balena/CHANGELOG.md#2023-02-07-upstream-release
footers:
change-type: patch
signed-off-by: Leandro Motta Barros <leandro@balena.io>
author: Leandro Motta Barros
nested: []
version: 20.10.27
date: 2023-02-07T12:00:00.000Z
- commits:
- subject: Cross-build the dynbinary target
hash: 0240d94e35a43be595cd5e79b0653440c228229f
Expand Down
174 changes: 174 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,180 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

# v20.10.27
## (2023-02-07) [upstream release]

<details>
<summary>Merge upstream 20.10.17 [Leandro Motta Barros]</summary>

## 20.10.17

2022-06-06

This release of Docker Engine comes with updated versions of Docker Compose and the `containerd`, and `runc` components, as well as some minor bug fixes.

### Client

* Remove asterisk from docker commands in zsh completion script [docker/cli#3648](https://github.com/docker/cli/pull/3648).

### Networking

* Fix Windows port conflict with published ports in host mode for overlay [moby/moby#43644](https://github.com/moby/moby/pull/43644).
* Ensure performance tuning is always applied to libnetwork sandboxes [moby/moby#43683](https://github.com/moby/moby/pull/43683).

### Packaging

* Update Docker Compose to [v2.6.0](https://github.com/docker/compose/releases/tag/v2.6.0).
* Update containerd (`containerd.io` package) to [v1.6.6](https://github.com/containerd/containerd/releases/tag/v1.6.6), which contains a fix for [CVE-2022-31030](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31030)
* Update runc version to [v1.1.2](https://github.com/opencontainers/runc/releases/tag/v1.1.2), which contains a fix for [CVE-2022-29162](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29162).
* Update Go runtime to [1.17.11](https://go.dev/doc/devel/release#go1.17.minor), which contains fixes for [CVE-2022-30634](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30634), [CVE-2022-30629](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30629), [CVE-2022-30580](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30580) and [CVE-2022-29804](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29804)

## 20.10.16

2022-05-12

This release of Docker Engine fixes a regression in the Docker CLI builds for macOS, fixes an issue with `docker stats` when using containerd 1.5 and up, and updates the Go runtime to include a fix for [CVE-2022-29526](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29526).

### Client

* Fixed a regression in binaries for macOS introduced in [20.10.15](#201015), which resulted in a panic [docker/cli#43426](https://github.com/docker/cli/pull/3592).
* Update golang.org/x/sys dependency which contains a fix for [CVE-2022-29526](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29526).

### Daemon

* Fixed an issue where `docker stats` was showing empty stats when running with containerd 1.5.0 or up [moby/moby#43567](https://github.com/moby/moby/pull/43567).
* Updated the `golang.org/x/sys` build-time dependency which contains a fix for [CVE-2022-29526](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29526).

### Packaging

* Updated Go runtime to [1.17.10](https://go.dev/doc/devel/release#go1.17.minor), which contains a fix for [CVE-2022-29526](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29526).
* Used “weak” dependencies for the `docker scan` CLI plugin, to prevent a “conflicting requests” error when users performed an off-line installation from downloaded RPM packages [docker/docker-ce-packaging#659](https://github.com/docker/docker-ce-packaging/pull/659).

## 20.10.15

2022-05-05

This release of Docker Engine comes with updated versions of the `compose`, `buildx`, `containerd`, and `runc` components, as well as some minor bug fixes.

> **Known issues**
>
> We’ve identified an issue with the [macOS CLI binaries](https://download.docker.com/mac/static/stable/) in the 20.10.15 release. This issue has been resolved in the [20.10.16](#201016) release.

### Daemon

* Use a RWMutex for stateCounter to prevent potential locking congestion [moby/moby#43426](https://github.com/moby/moby/pull/43426).
* Prevent an issue where the daemon was unable to find an available IP-range in some conditions [moby/moby#43360](https://github.com/moby/moby/pull/43360)

### Packaging

* Update Docker Compose to [v2.5.0](https://github.com/docker/compose/releases/tag/v2.5.0).
* Update Docker Buildx to [v0.8.2](https://github.com/docker/buildx/releases/tag/v0.8.2).
* Update Go runtime to [1.17.9](https://go.dev/doc/devel/release#go1.17.minor).
* Update containerd (`containerd.io` package) to [v1.6.4](https://github.com/containerd/containerd/releases/tag/v1.6.4).
* Update runc version to [v1.1.1](https://github.com/opencontainers/runc/releases/tag/v1.1.1).
* Add packages for CentOS 9 stream and Fedora 36.

## 20.10.14

2022-03-23

This release of Docker Engine updates the default inheritable capabilities for containers to address [CVE-2022-24769](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24769), a new version of the `containerd.io` runtime is also included to address the same issue.

### Daemon

* Update the default inheritable capabilities.

### Builder

* Update the default inheritable capabilities for containers used during build.

### Packaging

* Update containerd (`containerd.io` package) to [v1.5.11](https://github.com/containerd/containerd/releases/tag/v1.5.11).
* Update `docker buildx` to [v0.8.1](https://github.com/docker/buildx/releases/tag/v0.8.1).

## 20.10.13

2022-03-10

This release of Docker Engine contains some bug-fixes and packaging changes, updates to the `docker scan` and `docker buildx` commands, an updated version of the Go runtime, and new versions of the `containerd.io` runtime. Together with this release, we now also provide `.deb` and `.rpm` packages of Docker Compose V2, which can be installed using the (optional) `docker-compose-plugin` package.

### Builder

* Updated the bundled version of buildx to [v0.8.0](https://github.com/docker/buildx/releases/tag/v0.8.0).

### Daemon

* Fix a race condition when updating the container’s state [moby/moby#43166](https://github.com/moby/moby/pull/43166).
* Update the etcd dependency to prevent the daemon from incorrectly holding file locks [moby/moby#43259](https://github.com/moby/moby/pull/43259)
* Fix detection of user-namespaces when configuring the default `net.ipv4.ping_group_range` sysctl [moby/moby#43084](https://github.com/moby/moby/pull/43084).

### Distribution

* Retry downloading image-manifests if a connection failure happens during image pull [moby/moby#43333](https://github.com/moby/moby/pull/43333).

### Documentation

* Various fixes in command-line reference and API documentation.

### Logging

* Prevent an OOM when using the “local” logging driver with containers that produce a large amount of log messages [moby/moby#43165](https://github.com/moby/moby/pull/43165).
* Updates the fluentd log driver to prevent a potential daemon crash, and prevent containers from hanging when using the `fluentd-async-connect=true` and the remote server is unreachable [moby/moby#43147](https://github.com/moby/moby/pull/43147).

### Packaging

* Provide `.deb` and `.rpm` packages for Docker Compose V2\. [Docker Compose v2.3.3](https://github.com/docker/compose/releases/tag/v2.3.3) can now be installed on Linux using the `docker-compose-plugin` packages, which provides the `docker compose` subcommand on the Docker CLI. The Docker Compose plugin can also be installed and run standalone to be used as a drop-in replacement for `docker-compose` (Docker Compose V1) [docker/docker-ce-packaging#638](https://github.com/docker/docker-ce-packaging/pull/638). The `compose-cli-plugin` package can also be used on older version of the Docker CLI with support for CLI plugins (Docker CLI 18.09 and up).
* Provide packages for the upcoming Ubuntu 22.04 “Jammy Jellyfish” LTS release [docker/docker-ce-packaging#645](https://github.com/docker/docker-ce-packaging/pull/645), [docker/containerd-packaging#271](https://github.com/docker/containerd-packaging/pull/271).
* Update `docker buildx` to [v0.8.0](https://github.com/docker/buildx/releases/tag/v0.8.0).
* Update `docker scan` (`docker-scan-plugin`) to [v0.17.0](https://github.com/docker/scan-cli-plugin/releases/tag/v0.17.0).
* Update containerd (`containerd.io` package) to [v1.5.10](https://github.com/containerd/containerd/releases/tag/v1.5.10).
* Update the bundled runc version to [v1.0.3](https://github.com/opencontainers/runc/releases/tag/v1.0.3).
* Update Golang runtime to Go 1.16.15.

## 20.10.12

2021-12-13

This release of Docker Engine contains changes in packaging only, and provides updates to the `docker scan` and `docker buildx` commands. Versions of `docker scan` before v0.11.0 are not able to detect the [Log4j 2 CVE-2021-44228](https://nvd.nist.gov/vuln/detail/CVE-2021-44228). We are shipping an updated version of `docker scan` in this release to help you scan your images for this vulnerability.

> **Note**
>
> The `docker scan` command on Linux is currently only supported on x86 platforms. We do not yet provide a package for other hardware architectures on Linux.

The `docker scan` feature is provided as a separate package and, depending on your upgrade or installation method, ‘docker scan’ may not be updated automatically to the latest version. Use the instructions below to update `docker scan` to the latest version. You can also use these instructions to install, or upgrade the `docker scan` package without upgrading the Docker Engine:

On `.deb` based distros, such as Ubuntu and Debian:

```
$ apt-get update && apt-get install docker-scan-plugin
```

On rpm-based distros, such as CentOS or Fedora:

```
$ yum install docker-scan-plugin
```

After upgrading, verify you have the latest version of `docker scan` installed:

```
$ docker scan --accept-license --version
Version: v0.12.0
Git commit: 1074dd0
Provider: Snyk (1.790.0 (standalone))
```

[Read our blog post on CVE-2021-44228](https://www.docker.com/blog/apache-log4j-2-cve-2021-44228/) to learn how to use the `docker scan` command to check if images are vulnerable.

### Packaging

* Update `docker scan` to [v0.12.0](https://github.com/docker/scan-cli-plugin/releases/tag/v0.12.0).
* Update `docker buildx` to [v0.7.1](https://github.com/docker/buildx/releases/tag/v0.7.1).
* Update Golang runtime to Go 1.16.12.

</details>

# v20.10.26
## (2023-01-17)

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG CROSS="false"
ARG SYSTEMD="false"
# IMPORTANT: When updating this please note that stdlib archive/tar pkg is vendored
ARG GO_VERSION=1.18.8
ARG GO_VERSION=1.17.11
ARG DEBIAN_FRONTEND=noninteractive
ARG VPNKIT_VERSION=0.5.0
ARG DOCKER_BUILDTAGS="apparmor seccomp no_btrfs no_cri no_devmapper no_zfs exclude_disk_quota exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_zfs"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.e2e
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.16.10
ARG GO_VERSION=1.17.11

FROM golang:${GO_VERSION}-alpine AS base
ENV GO111MODULE=off
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.simple
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# This represents the bare minimum required to build and test Docker.

ARG GO_VERSION=1.16.10
ARG GO_VERSION=1.17.11

FROM golang:${GO_VERSION}-buster
ENV GO111MODULE=off
Expand Down
17 changes: 8 additions & 9 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ FROM microsoft/windowsservercore
# Use PowerShell as the default shell
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ARG GO_VERSION=1.16.10
ARG GOTESTSUM_COMMIT=v0.5.3
ARG GO_VERSION=1.17.11
ARG GOTESTSUM_VERSION=v1.7.0

# Environment variable notes:
# - GO_VERSION must be consistent with 'Dockerfile' used by Linux.
Expand All @@ -176,7 +176,7 @@ ENV GO_VERSION=${GO_VERSION} `
GOPATH=C:\gopath `
GO111MODULE=off `
FROM_DOCKERFILE=1 `
GOTESTSUM_COMMIT=${GOTESTSUM_COMMIT}
GOTESTSUM_VERSION=${GOTESTSUM_VERSION}

RUN `
Function Test-Nano() { `
Expand Down Expand Up @@ -261,21 +261,20 @@ RUN `
C:\git\cmd\git config --global core.autocrlf true;

RUN `
Function Build-GoTestSum() { `
Write-Host "INFO: Building gotestsum version $Env:GOTESTSUM_COMMIT in $Env:GOPATH"; `
Function Install-GoTestSum() { `
$Env:GO111MODULE = 'on'; `
$tmpGobin = "${Env:GOBIN_TMP}"; `
$Env:GOBIN = """${Env:GOPATH}`\bin"""; `
&go get -buildmode=exe "gotest.tools/gotestsum@${Env:GOTESTSUM_COMMIT}"; `
Write-Host "INFO: Installing gotestsum version $Env:GOTESTSUM_VERSION in $Env:GOBIN"; `
&go install "gotest.tools/gotestsum@${Env:GOTESTSUM_VERSION}"; `
$Env:GOBIN = "${tmpGobin}"; `
$Env:GO111MODULE = 'off'; `
if ($LASTEXITCODE -ne 0) { `
Throw '"gotestsum build failed..."'; `
Throw '"gotestsum install failed..."'; `
} `
Write-Host "INFO: Build done for gotestsum..."; `
} `
`
Build-GoTestSum
Install-GoTestSum

# Make PowerShell the default entrypoint
ENTRYPOINT ["powershell.exe"]
Expand Down
20 changes: 3 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.PHONY: all binary dynbinary build cross help install manpages run shell test test-docker-py test-integration test-unit validate win

BUILDX_VERSION ?= v0.8.2

ifdef USE_BUILDX
BUILDX ?= $(shell command -v buildx)
BUILDX ?= $(shell command -v docker-buildx)
Expand Down Expand Up @@ -272,22 +274,6 @@ buildx: bundles/buildx ## build buildx cli tool
endif
endif

# This intentionally is not using the `--output` flag from the docker CLI, which
# is a buildkit option. The idea here being that if buildx is being used, it's
# because buildkit is not supported natively
bundles/buildx: bundles ## build buildx CLI tool
docker build -f $${BUILDX_DOCKERFILE:-Dockerfile.buildx} -t "moby-buildx:$${BUILDX_COMMIT:-latest}" \
--build-arg BUILDX_COMMIT \
--build-arg BUILDX_REPO \
--build-arg GOOS=$$(if [ -n "$(GOOS)" ]; then echo $(GOOS); else go env GOHOSTOS || uname | awk '{print tolower($$0)}' || true; fi) \
--build-arg GOARCH=$$(if [ -n "$(GOARCH)" ]; then echo $(GOARCH); else go env GOHOSTARCH || true; fi) \
.

id=$$(docker create moby-buildx:$${BUILDX_COMMIT:-latest}); \
if [ -n "$${id}" ]; then \
docker cp $${id}:/usr/bin/buildx $@ \
&& touch $@; \
docker rm -f $${id}; \
fi

curl -fsSL https://raw.githubusercontent.com/moby/buildkit/70deac12b5857a1aa4da65e90b262368e2f71500/hack/install-buildx | VERSION="$(BUILDX_VERSION)" BINDIR="$(@D)" bash
$@ version
1 change: 1 addition & 0 deletions api/common_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package api // import "github.com/docker/docker/api"
Expand Down
34 changes: 34 additions & 0 deletions api/server/errorhandler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package server

import (
"net/http"

"github.com/docker/docker/api/server/httpstatus"
"github.com/docker/docker/api/server/httputils"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/versions"
"github.com/gorilla/mux"
"google.golang.org/grpc/status"
)

// makeErrorHandler makes an HTTP handler that decodes a Docker error and
// returns it in the response.
func makeErrorHandler(err error) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
statusCode := httpstatus.FromError(err)
vars := mux.Vars(r)
if apiVersionSupportsJSONErrors(vars["version"]) {
response := &types.ErrorResponse{
Message: err.Error(),
}
_ = httputils.WriteJSON(w, statusCode, response)
} else {
http.Error(w, status.Convert(err).Message(), statusCode)
}
}
}

func apiVersionSupportsJSONErrors(version string) bool {
const firstAPIVersionWithJSONErrors = "1.23"
return version == "" || versions.GreaterThan(version, firstAPIVersionWithJSONErrors)
}
Loading