This is an automated email from the ASF dual-hosted git repository.
jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new de7710d7266 Fix failing nativeTest on Windows Server 2025 (#37775)
de7710d7266 is described below
commit de7710d726672ecec77c7a956a50bee469e7ac2f
Author: Ling Hengqian <[email protected]>
AuthorDate: Tue Jan 20 14:44:39 2026 +0800
Fix failing nativeTest on Windows Server 2025 (#37775)
---
.../shardingsphere-jdbc/graalvm-native-image/development/_index.cn.md | 2 ++
.../shardingsphere-jdbc/graalvm-native-image/development/_index.en.md | 2 ++
.../user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md | 1 +
.../user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md | 1 +
test/native/src/test/resources/test-native/ps1/config-rdctl.ps1 | 1 +
5 files changed, 7 insertions(+)
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.cn.md
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.cn.md
index 7a3766fc464..b0169df0527 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.cn.md
@@ -120,6 +120,7 @@ wsl --install
并设置使用 `dockerd(moby)` 的 `Container Engine`。
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# 打开新的 PowerShell 7 终端
rdctl start --application.start-in-background --container-engine.name=moby
--kubernetes.enabled=false
@@ -147,6 +148,7 @@ rdctl start --application.start-in-background
--container-engine.name=moby --kub
可在 PowerShell 7 执行如下命令,
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
iex "& { $(irm
https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1)
} -Force"
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# 打开新的 PowerShell 7 终端
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.en.md
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.en.md
index 17b6d1d93a5..adcc85c2cd9 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.en.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/development/_index.en.md
@@ -125,6 +125,7 @@ After enabling WSL2, download and install
`rancher-sandbox/rancher-desktop` usin
and configure it to use the `dockerd(moby)` `Container Engine`.
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# Open a new PowerShell 7 terminal
rdctl start --application.start-in-background --container-engine.name=moby
--kubernetes.enabled=false
@@ -152,6 +153,7 @@ they will need to uninstall Docker Engine using the script
provided by Microsoft
You can execute the following command in PowerShell 7:
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
iex "& { $(irm
https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1)
} -Force"
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# Open a new PowerShell 7 terminal
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
index 4e28f95a846..4d098131f31 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
@@ -199,6 +199,7 @@ wsl --install
并设置使用 `dockerd(moby)` 的 `Container Engine`。
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# 打开新的 PowerShell 7 终端
rdctl start --application.start-in-background --container-engine.name=moby
--kubernetes.enabled=false
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
index 34bf73ab48c..5278407187d 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
@@ -203,6 +203,7 @@ After enabling WSL2, download and install
`rancher-sandbox/rancher-desktop` usin
and configure `dockerd(moby)` to use the `Container Engine`.
```shell
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
# Open a new PowerShell 7 terminal
rdctl start --application.start-in-background --container-engine.name=moby
--kubernetes.enabled=false
diff --git a/test/native/src/test/resources/test-native/ps1/config-rdctl.ps1
b/test/native/src/test/resources/test-native/ps1/config-rdctl.ps1
index c58f6c64531..68b13110f05 100644
--- a/test/native/src/test/resources/test-native/ps1/config-rdctl.ps1
+++ b/test/native/src/test/resources/test-native/ps1/config-rdctl.ps1
@@ -19,6 +19,7 @@
# This file is only used in the PowerShell 7 of ShardingSphere in GitHub
Actions environment and should not be executed manually in a development
environment.
# Background information can be found at
https://github.com/apache/shardingsphere/pull/35905 .
+[Environment]::SetEnvironmentVariable('DOCKER_API_VERSION','1.44','Machine')
iex "& { $(irm
https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1)
} -Force"
irm
https://raw.githubusercontent.com/jazzdelightsme/WingetPathUpdater/v1.2/WingetPathUpdaterInstall.ps1
| iex
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies