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:

  • unable to launch dockerized node app in browser
  • Access Jupyter notebook running on Docker container
  • Migration from MySQL to postgresql using Django and Docker - relation “authtoken_token” does not exist
  • Error trying to install Ansible in Jenkins image
  • AWS ECS - how to log to cloudwatch from ECS container?
  • Localhost inside docker - neo4j
  • 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?

  • NodeJS fs.watch is not reacting to changes inside a Docker Container
  • Setting up CD for a Ruby on Rails project with Bitbucket Pipelines and Docker
  • Docker “ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network”
  • Unable to run build for gitlab-ci
  • Docker port conflict on Ubuntu
  • Why can't redis access the disk in docker-compose?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.