vjuranek / docker-build-step-plugin

Other
8 stars 97 forks source link

docker-build-step will not forward ports of container, renders plugin useless for starting containers. #34

Open nfoonf opened 8 years ago

nfoonf commented 8 years ago

Actual version of docker build step plugin will under no circumstances forward exposed ports of a container running on Docker Swarm. Neither publishing of all ports nor manual port bindings have any effect on this. As this makes impossible to talk to the started container, it impairs the usefulness of the plugin massively.

Running: Docker-engine 1.10.2 Docker-Swarm 1.1.3 Jenkins ver. 1.642.2 inside Docker Container with all default config

nfoonf commented 8 years ago

Further investigation of this issue shows that the problem lies in the container/id/start endpoint. this is marked as a Bug in swarm already (https://github.com/docker/swarm/issues/1781) .

The plugin configures several variables at the start of an existing container, while these should be most probably configured during creation and only there, to be consistent for example with the 'docker start' command.

sboschman commented 8 years ago

Also created an issue for this on the 'official' Jenkins Jira: https://issues.jenkins-ci.org/browse/JENKINS-33579