Skip to content

Commit

Permalink
Merge pull request #320 from djaara/master
Browse files Browse the repository at this point in the history
JENKINS-30200: Nullpointer exception while connecting to a docker
  • Loading branch information
magnayn committed Dec 22, 2015
2 parents 1ccd2e7 + 5b06e3b commit 498c143
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ public ComputerLauncher getPreparedLauncher(String cloudId, DockerTemplate docke
public void appendContainerConfig(DockerTemplate dockerTemplate, CreateContainerCmd createCmd) {
final int sshPort = getSshConnector().port;

createCmd.withPortSpecs(sshPort + "/tcp");
createCmd.withExposedPorts(new ExposedPort(sshConnector.port));

String[] cmd = dockerTemplate.getDockerTemplateBase().getDockerCommandArray();
if (cmd.length == 0) {
Expand Down

2 comments on commit 498c143

@tianlai
Copy link

@tianlai tianlai commented on 498c143 Jan 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for the next available release with this fix to work with docker api 1.20. @KostyaSha when will be the next release approximately?

@KostyaSha
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tianlai #235 (comment) i'm working in my variant of docker plugin

Please sign in to comment.