Docker push fails with fatal error msg=“”

Using the sbt-docker plugin, I execute sbt dockerBuildAndPush and see the following output after assembly:

...
[info] Pushing docker image with name: 'myorg/myrepo'
[info] The push refers to a repository [myorg/myrepo] (len: 1)
[info] Sending image list
[info] Pushing repository myorg/myrepo (1 tags)
[info] 511136ea3c5a: Pushing
[info] 511136ea3c5a: Image already pushed, skipping
[info] 19df420c532f: Pushing
[info] 19df420c532f: Image already pushed, skipping
... 14 more of these message pairs ...
[info] 53531ebeee8d: Pushing
[info] 53531ebeee8d: Buffering to disk
[info] time="2015-04-08T20:50:50+10:00" level="fatal" msg=""
java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.process.BasicIO$Streamed$.scala$sys$process$BasicIO$Streamed$$next$1(BasicIO.scala:48)
...

build.sbt includes:

  • How can I disable the default composer install in CircleCI?
  • How can I tell my script to wait for consul to elect a leader before trying to add key/value pairs to it at startup?
  • Automated pulling from gitolite repo within docker container
  • What is the difference between docker-compose ports vs expose
  • Docker - Share environment variables with referenced volume containers
  • Unable to access hosted app from docker in Windows
  • docker <<= (docker dependsOn assembly)
    
    dockerfile in docker := {
      val artifact = (assemblyOutputPath in assembly).value
      val artifactTargetPath = "/app/server.jar"
      new Dockerfile {
        from("java:8")
        maintainer("MyOrg", "dev@myorg.com")
        workDir("/app")
        run("mkdir", "-p", "/app/data")
        run("chown", "daemon", "/app/data")
        user("daemon")
        add(artifact, artifactTargetPath)
        entryPoint("java", "-Xmx8g", "-jar", artifactTargetPath)
        expose(8080)
      }
    }
    
    imageNames in docker := Seq(
      ImageName("myorg/myrepo")
    )
    

    Why is it failing?

  • Docker Remote API filters: filter out network by name
  • Bash unable to create directory
  • How to write a Dockerfile for a custom python project?
  • Is it possible to reboot a OS (linux) that is running within a Docker container? (to restart the GPU)
  • Permissions error running Java Timezone Updater JAR in Dockerfile
  • Proxy Error in nova docker installation
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.