{"action":"created","issue":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/718","repository_url":"https://api.github.com/repos/docker-java/docker-java","labels_url":"https://api.github.com/repos/docker-java/docker-java/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/docker-java/docker-java/issues/718/comments","events_url":"https://api.github.com/repos/docker-java/docker-java/issues/718/events","html_url":"https://github.com/docker-java/docker-java/issues/718","id":180517534,"number":718,"title":"Single argument form of links are not supported","user":{"login":"gcbartlett","id":4016279,"avatar_url":"https://avatars.githubusercontent.com/u/4016279?v=3","gravatar_id":"","url":"https://api.github.com/users/gcbartlett","html_url":"https://github.com/gcbartlett","followers_url":"https://api.github.com/users/gcbartlett/followers","following_url":"https://api.github.com/users/gcbartlett/following{/other_user}","gists_url":"https://api.github.com/users/gcbartlett/gists{/gist_id}","starred_url":"https://api.github.com/users/gcbartlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcbartlett/subscriptions","organizations_url":"https://api.github.com/users/gcbartlett/orgs","repos_url":"https://api.github.com/users/gcbartlett/repos","events_url":"https://api.github.com/users/gcbartlett/events{/privacy}","received_events_url":"https://api.github.com/users/gcbartlett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker-java/docker-java/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-02T15:25:50Z","updated_at":"2016-10-04T17:08:58Z","closed_at":null,"body":"For supporting legacy container links, docker supports two forms for the `--link` argument: `--link <name or id>:alias` and `--link <name or id>` (see https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/#communication-across-links).\r\n\r\n**docker-java**, however, only supports the first form.\r\n\r\nAttempting to use the single argument form produces an `IllegalArgumentException`, e.g.:\r\n\r\n```\r\njava.lang.IllegalArgumentException: Error parsing Link 'jenkins_master_1'\r\n\tat com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.model.Link.parse(Link.java:70)\r\n\tat java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n\tat java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n\tat java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)\r\n\tat com.github.kostyasha.yad.commons.DockerCreateContainer.fillContainerConfig(DockerCreateContainer.java:541)\r\n\tat com.github.kostyasha.yad.DockerCloud.runContainer(DockerCloud.java:151)\r\n\tat com.github.kostyasha.yad.DockerCloud.provisionWithWait(DockerCloud.java:197)\r\n\tat com.github.kostyasha.yad.DockerCloud.lambda$provision$0(DockerCloud.java:120)\r\n\tat jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/comments/251450537","html_url":"https://github.com/docker-java/docker-java/issues/718#issuecomment-251450537","issue_url":"https://api.github.com/repos/docker-java/docker-java/issues/718","id":251450537,"user":{"login":"KostyaSha","id":231611,"avatar_url":"https://avatars.githubusercontent.com/u/231611?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaSha","html_url":"https://github.com/KostyaSha","followers_url":"https://api.github.com/users/KostyaSha/followers","following_url":"https://api.github.com/users/KostyaSha/following{/other_user}","gists_url":"https://api.github.com/users/KostyaSha/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaSha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaSha/subscriptions","organizations_url":"https://api.github.com/users/KostyaSha/orgs","repos_url":"https://api.github.com/users/KostyaSha/repos","events_url":"https://api.github.com/users/KostyaSha/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaSha/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T17:08:58Z","updated_at":"2016-10-04T17:08:58Z","body":"Also IllegalArgumentException must throw message."}}
{"actor":{"display_login":"KostyaSha"}}