SBT Native Packager Plugin Docker Error -
i have used sbt docker plugin 1 of project , following error when ran:
sbt docker:publishlocal joes-macbook-pro:my-projects joe$ sbt docker:publishlocal java hotspot(tm) 64-bit server vm warning: ignoring option maxpermsize=724m; support removed in 8.0 [info] loading project definition /users/joe/projects/my-projects/proj1/project [info] set current project sally (in build file:/users/joe/projects/my-projects/proj1/) [info] wrote /users/joe/projects/my-projects/proj1/target/scala-2.11/sally_2.11-2.1.pom java.io.ioexception: cannot run program "docker" (in directory "/users/joe/projects/my-projects/proj1/target/docker/docker/stage"): error=2, no such file or directory @ java.lang.processbuilder.start(processbuilder.java:1048) @ sbt.simpleprocessbuilder.run(processimpl.scala:349) @ sbt.abstractprocessbuilder.run(processimpl.scala:128) @ sbt.abstractprocessbuilder$$anonfun$runbuffered$1.apply(processimpl.scala:159) @ sbt.abstractprocessbuilder$$anonfun$runbuffered$1.apply(processimpl.scala:159) @ com.typesafe.sbt.packager.docker.dockerplugin$$anon$1.buffer(dockerplugin.scala:275) @ sbt.abstractprocessbuilder.runbuffered(processimpl.scala:159) @ sbt.abstractprocessbuilder.$bang(processimpl.scala:156) @ com.typesafe.sbt.packager.docker.dockerplugin$.publishlocaldocker(dockerplugin.scala:285) @ com.typesafe.sbt.packager.docker.dockerplugin$$anonfun$projectsettings$14.apply(dockerplugin.scala:106) @ com.typesafe.sbt.packager.docker.dockerplugin$$anonfun$projectsettings$14.apply(dockerplugin.scala:105) @ scala.function4$$anonfun$tupled$1.apply(function4.scala:35) @ scala.function4$$anonfun$tupled$1.apply(function4.scala:34) @ scala.function1$$anonfun$compose$1.apply(function1.scala:47) @ sbt.$tilde$greater$$anonfun$$u2219$1.apply(typefunctions.scala:40) @ sbt.std.transform$$anon$4.work(system.scala:63) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:228) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:228) @ sbt.errorhandling$.wideconvert(errorhandling.scala:17) @ sbt.execute.work(execute.scala:237) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:228) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:228) @ sbt.concurrentrestrictions$$anon$4$$anonfun$1.apply(concurrentrestrictions.scala:159) @ sbt.completionservice$$anon$2.call(completionservice.scala:28) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: java.io.ioexception: error=2, no such file or directory @ java.lang.unixprocess.forkandexec(native method) @ java.lang.unixprocess.<init>(unixprocess.java:248) @ java.lang.processimpl.start(processimpl.java:134) @ java.lang.processbuilder.start(processbuilder.java:1029) @ sbt.simpleprocessbuilder.run(processimpl.scala:349) @ sbt.abstractprocessbuilder.run(processimpl.scala:128) @ sbt.abstractprocessbuilder$$anonfun$runbuffered$1.apply(processimpl.scala:159) @ sbt.abstractprocessbuilder$$anonfun$runbuffered$1.apply(processimpl.scala:159) @ com.typesafe.sbt.packager.docker.dockerplugin$$anon$1.buffer(dockerplugin.scala:275) @ sbt.abstractprocessbuilder.runbuffered(processimpl.scala:159) @ sbt.abstractprocessbuilder.$bang(processimpl.scala:156) @ com.typesafe.sbt.packager.docker.dockerplugin$.publishlocaldocker(dockerplugin.scala:285) @ com.typesafe.sbt.packager.docker.dockerplugin$$anonfun$projectsettings$14.apply(dockerplugin.scala:106) @ com.typesafe.sbt.packager.docker.dockerplugin$$anonfun$projectsettings$14.apply(dockerplugin.scala:105) @ scala.function4$$anonfun$tupled$1.apply(function4.scala:35) @ scala.function4$$anonfun$tupled$1.apply(function4.scala:34) @ scala.function1$$anonfun$compose$1.apply(function1.scala:47) @ sbt.$tilde$greater$$anonfun$$u2219$1.apply(typefunctions.scala:40) @ sbt.std.transform$$anon$4.work(system.scala:63) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:228) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:228) @ sbt.errorhandling$.wideconvert(errorhandling.scala:17) @ sbt.execute.work(execute.scala:237) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:228) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:228) @ sbt.concurrentrestrictions$$anon$4$$anonfun$1.apply(concurrentrestrictions.scala:159) @ sbt.completionservice$$anon$2.call(completionservice.scala:28) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) [error] (docker:publishlocal) java.io.ioexception: cannot run program "docker" (in directory "/users/joe/projects/my-projects/proj1/target/docker/docker/stage"): error=2, no such file or directory
check if docker running? try restarting docker daemon. should trick! alternatively try setting docker environment in every command line shell:
eval "$(docker-machine env default)"
where default name of docker machine created. make sure replace 1 created.
next, try giving current user docker previliges:
sudo usermod -ag docker $user
Comments
Post a Comment