Skip to content

Commit bb0edd1

Browse files
authored
Merge pull request #3261 from thaJeztah/bump_engine_versions
Bump default API version to 1.45 (Moby 26.0/26.1)
2 parents a8bac88 + e47e966 commit bb0edd1

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
TEST_API_VERSION ?= 1.44
2-
TEST_ENGINE_VERSION ?= 25.0
1+
TEST_API_VERSION ?= 1.45
2+
TEST_ENGINE_VERSION ?= 26.1
33

44
ifeq ($(OS),Windows_NT)
55
PLATFORM := Windows

docker/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .version import __version__
44

5-
DEFAULT_DOCKER_API_VERSION = '1.44'
5+
DEFAULT_DOCKER_API_VERSION = '1.45'
66
MINIMUM_DOCKER_API_VERSION = '1.24'
77
DEFAULT_TIMEOUT_SECONDS = 60
88
STREAM_HEADER_SIZE_BYTES = 8

tests/Dockerfile-ssh-dind

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG API_VERSION=1.44
4-
ARG ENGINE_VERSION=25.0
3+
ARG API_VERSION=1.45
4+
ARG ENGINE_VERSION=26.1
55

66
FROM docker:${ENGINE_VERSION}-dind
77

tests/integration/models_containers_test.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,9 @@ def test_run_with_networking_config(self):
131131
assert 'NetworkSettings' in attrs
132132
assert 'Networks' in attrs['NetworkSettings']
133133
assert list(attrs['NetworkSettings']['Networks'].keys()) == [net_name]
134-
# Expect Aliases to list 'test_alias' and the container's short-id.
135-
# In API version 1.45, the short-id will be removed.
134+
# Aliases no longer include the container's short-id in API v1.45.
136135
assert attrs['NetworkSettings']['Networks'][net_name]['Aliases'] \
137-
== [test_alias, attrs['Id'][:12]]
136+
== [test_alias]
138137
assert attrs['NetworkSettings']['Networks'][net_name]['DriverOpts'] \
139138
== test_driver_opt
140139

@@ -191,9 +190,9 @@ def test_run_with_networking_config_only_undeclared_network(self):
191190
assert 'NetworkSettings' in attrs
192191
assert 'Networks' in attrs['NetworkSettings']
193192
assert list(attrs['NetworkSettings']['Networks'].keys()) == [net_name]
194-
# Aliases should include the container's short-id (but it will be removed
195-
# in API v1.45).
196-
assert attrs['NetworkSettings']['Networks'][net_name]['Aliases'] == [attrs["Id"][:12]]
193+
# Aliases no longer include the container's short-id in API v1.45.
194+
assert (attrs['NetworkSettings']['Networks'][net_name]['Aliases']
195+
is None)
197196
assert (attrs['NetworkSettings']['Networks'][net_name]['DriverOpts']
198197
is None)
199198

0 commit comments

Comments
 (0)