You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I configure the properties of DockerClientConfig, I set withDockerTlsVerify to false, but it will eventually become an https request when requesting Docker private libraries,Here is my code:
When I configure the properties of DockerClientConfig, I set withDockerTlsVerify to false, but it will eventually become an https request when requesting Docker private libraries,Here is my code:
DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
.withDockerHost("tcp://"+item.getServerIp()+":"+item.getListPort())
.withDockerTlsVerify(false)
.build();
DockerHttpClient httpClient = new ApacheDockerHttpClient.Builder()
.dockerHost(config.getDockerHost())
.maxConnections(5)
.connectionTimeout(Duration.ofSeconds(5))
.responseTimeout(Duration.ofSeconds(5))
.build();
DockerClient dockerClient = DockerClientImpl.getInstance(config, httpClient);
DockerManagerVO dockerManagerVO = new DockerManagerVO();
dockerManagerVO.setDockerClient(dockerClient);
DockerManager.put(item.getId(),dockerManagerVO);
DockerConfigFindVO dockerConfigFindVO = dockerConfigMapper.findById(data.getConfigId());=
authConfig
.withRegistryAddress(dockerConfigFindVO.getConfigUrl())
.withUsername(dockerConfigFindVO.getConfigUserName())
.withPassword(dockerConfigFindVO.getConfigPassword());
The text was updated successfully, but these errors were encountered: