New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't allocate port in 1.2.0, works fine in 1.1.2 #93

Closed
larrycai opened this Issue Sep 15, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@larrycai

larrycai commented Sep 15, 2014

Using Windows boot2docker 1.2.0, jenkins LTS 1.565.2, docker 0.7

I got the error like below

Sep 11, 2014 9:44:21 PM hudson.slaves.NodeProvisioner update
WARNING: Provisioned slave Image of larrycai/jenkins-slave-ubuntu failed to launch
java.lang.RuntimeException: No mapped port 22 in host for SSL. Config=ContainerInspectResponse{id=8784f06e3482ef2eff99c90a680edb37f44f83ff5ba63a2dc6b1a0, created=2014-09-11T21:44:17.409187144Z, path=/usr/sbin/sshd, args=[Ljava.lang.Stric1, config=ContainerConfig{hostName=8784f06e3482, portSpecs=null, user=, tty=false, stdinOpen=false, stdInOnce=false, t=0, memorySwap=0, cpuShares=0, attachStdin=false, attachStdout=false, attachStderr=false, env=[Ljava.lang.String;@662=[Ljava.lang.String;@55d60d20, dns=null, image=larrycai/jenkins-slave-ubuntu, volumes=null, volumesFrom=, entrypoint=nrkDisabled=false, privileged=false, workingDir=, domainName=, exposedPorts={22/tcp={}}, onBuild=null}, state=Containering=true, pid=20403, exitCode=0, startedAt=2014-09-11T21:44:17.726400485Z, ghost=false, finishedAt=0001-01-01T00:00:0028e748063350e1e494b3e49645c1e954d755caa3641778fe8d76b3c94ff3e3ce, networkSettings=NetworkSettings{ipAddress=172.17.0.2xLen=16, gateway=172.17.42.1, bridge=docker0, portMapping=null, ports=Ports{ports={}, mapping=null}}, sysInitPath=nullnfPath=/mnt/sda1/var/lib/docker/containers/8784f06e3482ef2eff9907bb497c51c90a680edb37f44f83ff5ba63a2dc6b1a0/resolv.con={}, volumesRW={}, hostnamePath=/mnt/sda1/var/lib/docker/containers/8784f06e3482ef2eff9907bb497c51c90a680edb37f44f83ffb1a0/hostname, hostsPath=/mnt/sda1/var/lib/docker/containers/8784f06e3482ef2eff9907bb497c51c90a680edb37f44f83ff5ba63a2sts, name=/sleepy_morse, driver=aufs}
        at com.nirima.jenkins.plugins.docker.DockerComputerLauncher.getSSHLauncher(DockerComputerLauncher.java:62)
        at com.nirima.jenkins.plugins.docker.DockerComputerLauncher.makeLauncher(DockerComputerLauncher.java:41)
        at com.nirima.jenkins.plugins.docker.DockerComputerLauncher.<init>(DockerComputerLauncher.java:37)

It seems, the docker client API can't allocate port for 22.

While if I change the boot2docker 1.2.0 to old 1.1.2, this part works fine

Launching larrycai/jenkins-slave-ubuntu
Sep 15, 2014 2:19:04 PM com.nirima.jenkins.plugins.docker.DockerComputerLauncher getSSHLauncher
INFO: Creating slave SSH launcher for 172.17.42.1:49153

The whole environment can be found in https://github.com/larrycai/jenkins-docker-demo1 or running command below directly and execute the demo job inside browser

$ docker run -t -p 8080:8080 larrycai/jenkins-docker-demo1
@guilhermef

This comment has been minimized.

Show comment
Hide comment
@guilhermef

guilhermef Sep 15, 2014

I'm having the same issue on Ubuntu 14.04 and docker 1.2.0

guilhermef commented Sep 15, 2014

I'm having the same issue on Ubuntu 14.04 and docker 1.2.0

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 16, 2014

I'm having the same issue on Ubuntu 12.04 and docker 1.2.0

ghost commented Sep 16, 2014

I'm having the same issue on Ubuntu 12.04 and docker 1.2.0

@thomassuckow

This comment has been minimized.

Show comment
Hide comment
@thomassuckow

thomassuckow Sep 16, 2014

Contributor

Duplicate of #90

Contributor

thomassuckow commented Sep 16, 2014

Duplicate of #90

@larrycai

This comment has been minimized.

Show comment
Hide comment
@larrycai

larrycai Oct 13, 2014

It was fixed in jenkins LTS 1.565.3, docker plugin 0.8, docker 1.2.0

larrycai commented Oct 13, 2014

It was fixed in jenkins LTS 1.565.3, docker plugin 0.8, docker 1.2.0

@larrycai larrycai closed this Oct 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment