{"action":"created","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/72","labels_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/72/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/72/events","html_url":"https://github.com/bmuschko/gradle-docker-plugin/issues/72","id":78571821,"number":72,"title":"DockerPushImage cause error on Amazon EC2 instance","user":{"login":"staleks","id":1543466,"avatar_url":"https://avatars.githubusercontent.com/u/1543466?v=3","gravatar_id":"","url":"https://api.github.com/users/staleks","html_url":"https://github.com/staleks","followers_url":"https://api.github.com/users/staleks/followers","following_url":"https://api.github.com/users/staleks/following{/other_user}","gists_url":"https://api.github.com/users/staleks/gists{/gist_id}","starred_url":"https://api.github.com/users/staleks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staleks/subscriptions","organizations_url":"https://api.github.com/users/staleks/orgs","repos_url":"https://api.github.com/users/staleks/repos","events_url":"https://api.github.com/users/staleks/events{/privacy}","received_events_url":"https://api.github.com/users/staleks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-20T15:33:41Z","updated_at":"2015-07-18T15:20:35Z","closed_at":"2015-07-18T15:20:35Z","body":"Hi,\r\n\r\nI have gradle project and I've enabled gradle docker plugin for this project.\r\n``` \r\nbuildscript{\r\n\trepositories{\r\n\t\tmavenCentral()\r\n\t}\r\n\tdependencies{\r\n\t\tclasspath 'com.bmuschko:gradle-docker-plugin:2.3.1'\r\n\t}\r\n}\r\napply plugin: 'com.bmuschko.docker-remote-api'\r\n```\r\n\r\nFollowing tasks are performed:\r\n- copy final JAR file to /src/main/docker/app (in that folder I have already prepared Dockerfile)\r\n- making an image also works (DockerBuildImage)\r\n- then follows tag (DockerTagImage) also works\r\n\r\nfinal step is pushing image to `private docker registry`, which fails\r\n\r\nFollowing error is shown (--stacktrace)\r\n\r\n```\r\n20-May-2015 17:21:41\t:uploadAppDockerImage FAILED\r\n20-May-2015 17:21:41\t\r\n20-May-2015 17:21:41\tFAILURE: Build failed with an exception.\r\n20-May-2015 17:21:41\t\r\n20-May-2015 17:21:41\t* What went wrong:\r\n20-May-2015 17:21:41\tExecution failed for task ':uploadAppDockerImage'.\r\n20-May-2015 17:21:41\t> org.gradle.api.GradleException (no error message)\r\n20-May-2015 17:21:41\t\r\n20-May-2015 17:21:41\t* Try:\r\n20-May-2015 17:21:41\tRun with --info or --debug option to get more log output.\r\n20-May-2015 17:21:41\t\r\n20-May-2015 17:21:41\t* Exception is:\r\n20-May-2015 17:21:41\torg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':uploadAppDockerImage'.\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n20-May-2015 17:21:41\t        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:310)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n20-May-2015 17:21:41\t        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)\r\n20-May-2015 17:21:41\t        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)\r\n20-May-2015 17:21:41\t        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)\r\n20-May-2015 17:21:41\t        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:90)\r\n20-May-2015 17:21:41\t        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:50)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:27)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)\r\n20-May-2015 17:21:41\t        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:169)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.Main.doAction(Main.java:33)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)\r\n20-May-2015 17:21:41\t        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)\r\n20-May-2015 17:21:41\t        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)\r\n20-May-2015 17:21:41\t\r\n20-May-2015 17:21:41\tBUILD FAILED\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/comments/122553678","html_url":"https://github.com/bmuschko/gradle-docker-plugin/issues/72#issuecomment-122553678","issue_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/72","id":122553678,"user":{"login":"bmuschko","id":440872,"avatar_url":"https://avatars.githubusercontent.com/u/440872?v=3","gravatar_id":"","url":"https://api.github.com/users/bmuschko","html_url":"https://github.com/bmuschko","followers_url":"https://api.github.com/users/bmuschko/followers","following_url":"https://api.github.com/users/bmuschko/following{/other_user}","gists_url":"https://api.github.com/users/bmuschko/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuschko/subscriptions","organizations_url":"https://api.github.com/users/bmuschko/orgs","repos_url":"https://api.github.com/users/bmuschko/repos","events_url":"https://api.github.com/users/bmuschko/events{/privacy}","received_events_url":"https://api.github.com/users/bmuschko/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T15:20:35Z","updated_at":"2015-07-18T15:20:35Z","body":"Sorry, I don't know how to help here. I am going to close the issue."}}