GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Append the API version to all requests if set (#1514) · lreimer/docker-java@c60bcb2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docker-java-core/src/main/java/com/github/dockerjava/core
    • DefaultDockerCmdExecFactory.java
  • docker-java/src/test/java/com/github/dockerjava/core
    • DockerRule.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docker-java-core/src/main/java/com/github/dockerjava/core/DefaultDockerCmdExecFactory.java‎

Copy file name to clipboardExpand all lines: docker-java-core/src/main/java/com/github/dockerjava/core/DefaultDockerCmdExecFactory.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ public InvocationBuilder request() {
7979
resource = "/" + resource;
8080
}
8181

82+
RemoteApiVersion apiVersion = getDockerClientConfig().getApiVersion();
83+
if (apiVersion != RemoteApiVersion.UNKNOWN_VERSION) {
84+
resource = "/" + apiVersion.asWebPathPart() + resource;
85+
}
86+
8287
if (!queryParams.isEmpty()) {
8388
Escaper urlFormParameterEscaper = UrlEscapers.urlFormParameterEscaper();
8489
resource = queryParams.asMap().entrySet().stream()
Collapse file

‎docker-java/src/test/java/com/github/dockerjava/core/DockerRule.java‎

Copy file name to clipboardExpand all lines: docker-java/src/test/java/com/github/dockerjava/core/DockerRule.java
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ private static DefaultDockerClientConfig config() {
178178

179179
public static DefaultDockerClientConfig config(String password) {
180180
DefaultDockerClientConfig.Builder builder = DefaultDockerClientConfig.createDefaultConfigBuilder()
181+
.withApiVersion(RemoteApiVersion.VERSION_1_30)
181182
.withRegistryUrl("https://index.docker.io/v1/");
182183
if (password != null) {
183184
builder = builder.withRegistryPassword(password);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.