Drone

Drone docker plugin issue

Hello,

I was attempting to use the docker plugin to build images of my project but for some reason it exits with code 137.

I’ve read a bit about that exit code looks like out of memory killed, but my server has 6.5 gb ram, how is that not enough to build this image, i’ve like 4+ gb free all the time?

Also i went and built it manually on the same server no problems at all…

Have anyone ran into such issue?

Here’s my .drone.yml

pipeline:
  restore-cache:
    image: drillster/drone-volume-cache
    restore: true
    mount:
      - .gradleHome
    volumes:
      - /tmp/drone-cache-${DRONE_REPO_NAME}:/cache

  depdendencies:
    image: openjdk:8-jdk
    environment:
      - GRADLE_OPTS=-Dorg.gradle.daemon=false
      - GRADLE_USER_HOME=.gradleHome
    commands:
      - ./gradlew dependencies
      
  test:
    image: openjdk:8-jdk
    environment:
      - GRADLE_OPTS=-Dorg.gradle.daemon=false
      - GRADLE_USER_HOME=.gradleHome
    commands:
      - ./gradlew test

  rebuild-cache:
    image: drillster/drone-volume-cache
    rebuild: true
    mount:
      - .gradleHome
    volumes:
      - /tmp/drone-cache-${DRONE_REPO_NAME}:/cache

  telegram:
    image: appleboy/drone-telegram
    secrets: [ telegram_token, telegram_to ]
    format: markdown
    message: |
      [Build]({{build.link}}) for [{{repo.name}}:{{commit.branch}}@{{truncate commit.sha 8}}](https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{commit.sha}}) {{#success build.status}}*Succeeded!*{{else}}*Failed!*{{/success}}
      {{#success build.status}}
      Good job [{{commit.author}}](https://github.com/{{commit.author}})!
      {{else}}
      Shame on you [{{commit.author}}](https://github.com/{{commit.author}}) _Fix me please!_
      {{/success}}
    when:
      status: [ success, failure ]

  docker-image-login:
    image: plugins/docker
    repo: myOrg/loginserver
    dockerfile: Dockerfile_loginserver
    registry: registry.my.org
    secrets: [ docker_username, docker_password ]
#    when:
#      branch: [master]

  docker-image-game:
    image: plugins/docker
    repo: myOrg/gameserver
    dockerfile: Dockerfile_gameserver
    registry: registry.my.org
    secrets: [ docker_username, docker_password ]
#    when:
#      branch: [master]

Here’s information printed by docker plugin

+ /usr/local/bin/dockerd -g /var/lib/docker
+ /usr/local/bin/docker version
Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:05:38 2017
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	false
+ /usr/local/bin/docker info
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 17.12.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-4-amd64
Operating System: Alpine Linux v3.7 (containerized)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 6.324GiB
Name: 4119d0ee9b3f
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Here are logs from agent

{"time":"2018-03-02T16:54:16Z","level":"debug","message":"request next execution"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"received execution"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"listen for cancel signal"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:07:32Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream opened"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream copied"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream uploading"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream closed"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:11Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream opened"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream copied"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream uploading"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream closed"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream opened"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream copied"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream uploading"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream closed"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream opened"}
{"time":"2018-03-02T17:08:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:09:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream copied"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream uploading"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream closed"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream opened"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream copied"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream uploading"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream closed"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream opened"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream copied"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream uploading"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream closed"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:45Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream opened"}
{"time":"2018-03-02T17:10:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:11:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream copied"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream uploading"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream upload complete"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream closed"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":1,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":1,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","error":"","exit_code":1,"message":"pipeline complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"uploading logs"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"uploading logs complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","error":"","exit_code":1,"message":"updating pipeline status"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"stop listening for cancel signal"}
{"time":"2018-03-02T17:11:37Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"updating pipeline status complete"}
{"time":"2018-03-02T17:11:37Z","level":"debug","message":"request next execution"}
{"time":"2018-03-02T17:11:37Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline done"}

Please see why-does-the-docker-plugin-fail for troubleshooting tips, specifically you should enable debug logging to see what errors come from the Docker daemon logs.

Debug enabled, running build now

It died again with 137, but this time at pushing image time, nothing strange in the output so far…

Here’s the output

+ /usr/local/bin/dockerd -g /var/lib/docker
time="2018-03-02T17:42:24Z" level=warning msg="The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
time="2018-03-02T17:42:24.999329342Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2018-03-02T17:42:25.000696585Z" level=info msg="libcontainerd: started new docker-containerd process" pid=16
time="2018-03-02T17:42:25Z" level=info msg="starting containerd" module=containerd revision=89623f28b87a6004d4b785663257362d1658a729 version=v1.0.0 
time="2018-03-02T17:42:25Z" level=info msg="setting subreaper..." module=containerd 
time="2018-03-02T17:42:25Z" level=info msg="changing OOM score to -500" module=containerd 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." module=containerd type=io.containerd.content.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." module=containerd type=io.containerd.snapshotter.v1 
time="2018-03-02T17:42:25Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." module=containerd type=io.containerd.snapshotter.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." module=containerd type=io.containerd.metadata.v1 
time="2018-03-02T17:42:25Z" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt" 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." module=containerd type=io.containerd.differ.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." module=containerd type=io.containerd.gc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." module=containerd type=io.containerd.monitor.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." module=containerd type=io.containerd.runtime.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." module=containerd type=io.containerd.grpc.v1 
time="2018-03-02T17:42:25Z" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug" 
time="2018-03-02T17:42:25Z" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc" 
time="2018-03-02T17:42:25Z" level=info msg="containerd successfully booted in 0.026063s" module=containerd 
time="2018-03-02T17:42:25.076609665Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2018-03-02T17:42:25.078148885Z" level=warning msg="Your kernel does not support swap memory limit"
time="2018-03-02T17:42:25.078233605Z" level=warning msg="Your kernel does not support cgroup rt period"
time="2018-03-02T17:42:25.078274052Z" level=warning msg="Your kernel does not support cgroup rt runtime"
time="2018-03-02T17:42:25.080601373Z" level=info msg="Loading containers: start."
time="2018-03-02T17:42:25.086640426Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: ip: can't find device 'bridge'\nbridge                135168  1 br_netfilter\nstp                    16384  1 bridge\nllc                    16384  2 bridge,stp\nip: can't find device 'br_netfilter'\nbr_netfilter           24576  0 \nbridge                135168  1 br_netfilter\nmodprobe: can't change directory to '/lib/modules': No such file or directory\n, error: exit status 1"
time="2018-03-02T17:42:25.090177239Z" level=warning msg="Running modprobe nf_nat failed with message: `ip: can't find device 'nf_nat'\nnf_nat_masquerade_ipv4    16384  1 ipt_MASQUERADE\nnf_nat_ipv4            16384  1 iptable_nat\nnf_nat                 24576  3 xt_nat,nf_nat_masquerade_ipv4,nf_nat_ipv4\nnf_conntrack          114688  6 nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4,nf_nat_ipv4,xt_conntrack,nf_nat\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
time="2018-03-02T17:42:25.093560677Z" level=warning msg="Running modprobe xt_conntrack failed with message: `ip: can't find device 'xt_conntrack'\nxt_conntrack           16384  9 \nnf_conntrack          114688  6 nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4,nf_nat_ipv4,xt_conntrack,nf_nat\nx_tables               36864  7 xt_nat,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,iptable_filter,xt_conntrack,ip_tables\nmodprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
time="2018-03-02T17:42:25.151751874Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address"
time="2018-03-02T17:42:25.172724819Z" level=info msg="Loading containers: done."
time="2018-03-02T17:42:25.178443167Z" level=info msg="Docker daemon" commit=c97c6d6 graphdriver(s)=overlay2 version=17.12.0-ce
time="2018-03-02T17:42:25.179400542Z" level=info msg="Daemon has completed initialization"
time="2018-03-02T17:42:25.203746196Z" level=info msg="API listen on /var/run/docker.sock"
+ /usr/local/bin/docker version
Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:05:38 2017
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	false
+ /usr/local/bin/docker info
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 17.12.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-4-amd64
Operating System: Alpine Linux v3.7 (containerized)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 6.324GiB
Name: 036066ab6b53
ID: 6HBT:ANBO:S2XH:O3DS:2SK7:NJGS:TRA3:PQC6:KKGV:YABW:EVA7:HRZ4
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

+ /usr/local/bin/docker build --rm=true -f Dockerfile_loginserver -t 13cbc4d0258596f7877d9ea2d581c5f3bdb19e5b . --pull=true --label org.label-schema.build-date=2018-03-02T17:42:26Z --label org.label-schema.vcs-ref=13cbc4d0258596f7877d9ea2d581c5f3bdb19e5b --label org.label-schema.vcs-url=https://github.com/UnAfraid/MyProject.git
Sending build context to Docker daemon  635.8MB

Step 1/24 : FROM anapsix/alpine-java:8_jdk
8_jdk: Pulling from anapsix/alpine-java
605ce1bd3f31: Pulling fs layer
2c7434a1cd6a: Pulling fs layer
605ce1bd3f31: Verifying Checksum
605ce1bd3f31: Download complete
605ce1bd3f31: Pull complete
2c7434a1cd6a: Verifying Checksum
2c7434a1cd6a: Download complete
2c7434a1cd6a: Pull complete
Digest: sha256:aaef26610b6a02df4eef4ed496671df11fd54e3fb7cb3a83013e62a5c8018c97
Status: Downloaded newer image for anapsix/alpine-java:8_jdk
 ---> 7775ababc3c6
Step 2/24 : LABEL maintainer="unafraid89@gmail.com"
 ---> Running in 8e32adc8ad12
time="2018-03-02T17:42:45.256290234Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 8e32adc8ad12
 ---> 707911107da4
Step 3/24 : ENV MYSQL_ROOT_PASSWORD root
 ---> Running in 308b31212421
time="2018-03-02T17:42:45.313462051Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 308b31212421
 ---> 30ae0fe30261
Step 4/24 : ENV LOGINSERVERCONFIG_DATABASE_LOGIN root
 ---> Running in 77d9cebdfa3d
time="2018-03-02T17:42:45.371740580Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 77d9cebdfa3d
 ---> 95e8c2ee3e68
Step 5/24 : ENV LOGINSERVERCONFIG_DATABASE_PASSWORD root
 ---> Running in 6ca65e4a7f41
time="2018-03-02T17:42:45.427331315Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 6ca65e4a7f41
 ---> bc552698274b
Step 6/24 : ENV LOGINSERVERCONFIG_DATABASE_URL jdbc:mysql://MyProject_db/MyProject_loginserver?useSSL=false&serverTimezone=Europe/Paris
 ---> Running in 31d27da20a34
time="2018-03-02T17:42:45.485761061Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 31d27da20a34
 ---> ea763d8bf231
Step 7/24 : ENV GRADLE_OPTS -Dorg.gradle.daemon=false
 ---> Running in cea9f091d277
time="2018-03-02T17:42:45.560904089Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container cea9f091d277
 ---> c20004fb63cd
Step 8/24 : ENV GRADLE_USER_HOME /tmp/gradle
 ---> Running in 7db942281f9e
time="2018-03-02T17:42:45.621670655Z" level=info msg="Layer sha256:50a51faa3902140525027ba3d54e0326e1a27e789637dc4a0e0468beabfe4c17 cleaned up"
Removing intermediate container 7db942281f9e
 ---> 8d86a667b1dc
Step 9/24 : WORKDIR /tmp/MyProject/
Removing intermediate container a40335d315df
 ---> a83d9fa65cbb
Step 10/24 : COPY .git /tmp/MyProject/.git
 ---> 6bd96362494f
Step 11/24 : COPY eclipse-settings/ /tmp/MyProject/eclipse-settings
 ---> f153de65432b
Step 12/24 : COPY gradle/ /tmp/MyProject/gradle
 ---> 1f27c6403ab4
Step 13/24 : COPY MyProject-commons/ /tmp/MyProject/MyProject-commons
 ---> 3f68383b85ea
Step 14/24 : COPY MyProject-loginserver/ /tmp/MyProject/MyProject-loginserver
 ---> a79356d5c189
Step 15/24 : COPY MyProject-network/ /tmp/MyProject/MyProject-network
 ---> 1fc7faf8f5dd
Step 16/24 : COPY build.gradle gradlew /tmp/MyProject/
 ---> 4959163eb20f
Step 17/24 : COPY docker/MyProject-loginserver/docker-entrypoint.sh /app/
 ---> b407567cc67a
Step 18/24 : RUN echo "include('MyProject-commons')" > settings.gradle &&   echo "include('MyProject-loginserver')" >> settings.gradle &&   echo "include('MyProject-network')" >> settings.gradle
 ---> Running in 537f4942a3c2
time="2018-03-02T17:42:48.524606065Z" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]"
time="2018-03-02T17:42:48.524696981Z" level=info msg="IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
time="2018-03-02T17:42:48.544310840Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.ContainerCreate"
time="2018-03-02T17:42:48Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/537f4942a3c28c68a95055e060a0eab9e0f00e260d740b1711bfde1a47a02a2b/shim.sock" debug=false module="containerd/tasks" pid=267 
time="2018-03-02T17:42:48.652159204Z" level=warning msg="unknown container" container=537f4942a3c28c68a95055e060a0eab9e0f00e260d740b1711bfde1a47a02a2b module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:42:48.663310072Z" level=warning msg="unknown container" container=537f4942a3c28c68a95055e060a0eab9e0f00e260d740b1711bfde1a47a02a2b module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:42:48.680679795Z" level=warning msg="unknown container" container=537f4942a3c28c68a95055e060a0eab9e0f00e260d740b1711bfde1a47a02a2b module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:42:48Z" level=info msg="shim reaped" id=537f4942a3c28c68a95055e060a0eab9e0f00e260d740b1711bfde1a47a02a2b module="containerd/tasks" 
time="2018-03-02T17:42:48.706973896Z" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:42:48.708069366Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:42:48.775150947Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/delete type="*events.ContainerDelete"
Removing intermediate container 537f4942a3c2
 ---> f173a287fcdb
Step 19/24 : RUN ./gradlew -p MyProject-loginserver clean generateLoginConfigs installDist
 ---> Running in 7b35cb96b177
time="2018-03-02T17:42:48.883160304Z" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]"
time="2018-03-02T17:42:48.883252185Z" level=info msg="IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
time="2018-03-02T17:42:48.897302309Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.ContainerCreate"
time="2018-03-02T17:42:48Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/7b35cb96b177dd72e28dd8c0b76963a6f741d84b0a897d3fb3e0416c687a291d/shim.sock" debug=false module="containerd/tasks" pid=337 
time="2018-03-02T17:42:48.990645791Z" level=warning msg="unknown container" container=7b35cb96b177dd72e28dd8c0b76963a6f741d84b0a897d3fb3e0416c687a291d module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:42:49.004440725Z" level=warning msg="unknown container" container=7b35cb96b177dd72e28dd8c0b76963a6f741d84b0a897d3fb3e0416c687a291d module=libcontainerd namespace=plugins.moby
Downloading https://services.gradle.org/distributions/gradle-4.5.1-bin.zip
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /tmp/gradle/wrapper/dists/gradle-4.5.1-bin/a5vbgfvpwtoqz8v2cdivxz28k/gradle-4.5.1-bin.zip to /tmp/gradle/wrapper/dists/gradle-4.5.1-bin/a5vbgfvpwtoqz8v2cdivxz28k
Set executable permissions for: /tmp/gradle/wrapper/dists/gradle-4.5.1-bin/a5vbgfvpwtoqz8v2cdivxz28k/gradle-4.5.1/bin/gradle
:MyProject-loginserver:clean
:MyProject-commons:compileJava
:MyProject-commons:processResources NO-SOURCE
:MyProject-commons:classes
:MyProject-commons:jar
:MyProject-network:compileJava
:MyProject-network:processResources NO-SOURCE
:MyProject-network:classes
:MyProject-network:jar
:MyProject-loginserver:compileJava
:MyProject-loginserver:processResources
:MyProject-loginserver:classes
:MyProject-loginserver:generateLoginConfigs
:MyProject-loginserver:jar
:MyProject-loginserver:installDist

BUILD SUCCESSFUL in 1m 11s
10 actionable tasks: 10 executed
time="2018-03-02T17:44:01.042425356Z" level=warning msg="unknown container" container=7b35cb96b177dd72e28dd8c0b76963a6f741d84b0a897d3fb3e0416c687a291d module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:44:01Z" level=info msg="shim reaped" id=7b35cb96b177dd72e28dd8c0b76963a6f741d84b0a897d3fb3e0416c687a291d module="containerd/tasks" 
time="2018-03-02T17:44:01.071361923Z" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:44:01.072722804Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:44:01.147402647Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/delete type="*events.ContainerDelete"
Removing intermediate container 7b35cb96b177
 ---> bfc380377f89
Step 20/24 : RUN mv MyProject-loginserver/build/install/MyProject-loginserver/login/* /app &&   cp -r /app/config /app/config-dist &&   rm -rf /tmp/*
 ---> Running in 4d50599e685a
time="2018-03-02T17:44:03.014458369Z" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]"
time="2018-03-02T17:44:03.014483990Z" level=info msg="IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 2001:4860:XXXX::YYYY]"
time="2018-03-02T17:44:03.028717291Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/create type="*events.ContainerCreate"
time="2018-03-02T17:44:03Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/4d50599e685af0e1efc1aada3deb4215373b991d0f8f3ddbf5a2aea74bc99374/shim.sock" debug=false module="containerd/tasks" pid=465 
time="2018-03-02T17:44:03.152974237Z" level=warning msg="unknown container" container=4d50599e685af0e1efc1aada3deb4215373b991d0f8f3ddbf5a2aea74bc99374 module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:44:03.163723836Z" level=warning msg="unknown container" container=4d50599e685af0e1efc1aada3deb4215373b991d0f8f3ddbf5a2aea74bc99374 module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:44:03.280463476Z" level=warning msg="unknown container" container=4d50599e685af0e1efc1aada3deb4215373b991d0f8f3ddbf5a2aea74bc99374 module=libcontainerd namespace=plugins.moby
time="2018-03-02T17:44:03Z" level=info msg="shim reaped" id=4d50599e685af0e1efc1aada3deb4215373b991d0f8f3ddbf5a2aea74bc99374 module="containerd/tasks" 
time="2018-03-02T17:44:03.306261285Z" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:44:03.306386746Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
time="2018-03-02T17:44:03.375890119Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/containers/delete type="*events.ContainerDelete"
Removing intermediate container 4d50599e685a
 ---> f4f186fa76e4
Step 21/24 : WORKDIR /app
time="2018-03-02T17:44:03.562539740Z" level=info msg="Layer sha256:cc9c2454780c34fa92914abcac97b987e425dd3e8d690731fb3e97ccaba7e69c cleaned up"
Removing intermediate container 39705b5c5a9b
 ---> b6416fd259f0
Step 22/24 : EXPOSE 2106
 ---> Running in 6daff06f2b1f
time="2018-03-02T17:44:03.621819353Z" level=info msg="Layer sha256:cc9c2454780c34fa92914abcac97b987e425dd3e8d690731fb3e97ccaba7e69c cleaned up"
Removing intermediate container 6daff06f2b1f
 ---> d4c87e5da3bf
Step 23/24 : CMD /app/docker-entrypoint.sh
 ---> Running in c2ebb0f4c159
time="2018-03-02T17:44:03.683170302Z" level=info msg="Layer sha256:cc9c2454780c34fa92914abcac97b987e425dd3e8d690731fb3e97ccaba7e69c cleaned up"
Removing intermediate container c2ebb0f4c159
 ---> ff86f83a8b6d
Step 24/24 : LABEL "org.label-schema.build-date"='2018-03-02T17:42:26Z' "org.label-schema.vcs-ref"='13cbc4d0258596f7877d9ea2d581c5f3bdb19e5b' "org.label-schema.vcs-url"='https://github.com/UnAfraid/MyProject.git'
 ---> Running in 495f1f21aba2
time="2018-03-02T17:44:03.762688241Z" level=info msg="Layer sha256:cc9c2454780c34fa92914abcac97b987e425dd3e8d690731fb3e97ccaba7e69c cleaned up"
Removing intermediate container 495f1f21aba2
 ---> c312ccd0073f
Successfully built c312ccd0073f
Successfully tagged 13cbc4d0258596f7877d9ea2d581c5f3bdb19e5b:latest
+ /usr/local/bin/docker tag 13cbc4d0258596f7877d9ea2d581c5f3bdb19e5b registry.my.org/MyProject/loginserver:latest
+ /usr/local/bin/docker push registry.my.org/MyProject/loginserver:latest
The push refers to repository [registry.my.org/MyProject/loginserver]
535e6d60782f: Preparing
cc66db026d64: Preparing
cdab5297a5d0: Preparing
137f7995fc29: Preparing
6288bcb9359a: Preparing
e7a81747f03f: Preparing
8e2221df508a: Preparing
734464f601aa: Preparing
f15e1341f657: Preparing
3887d9858739: Preparing
3927c2076c50: Preparing
8aa8359339c2: Preparing
fcf9c8f4a4bd: Preparing
9dfa40a0da3b: Preparing
e7a81747f03f: Waiting
8e2221df508a: Waiting
734464f601aa: Waiting
f15e1341f657: Waiting
3887d9858739: Waiting
3927c2076c50: Waiting
8aa8359339c2: Waiting
fcf9c8f4a4bd: Waiting
9dfa40a0da3b: Waiting
6288bcb9359a: Pushed
137f7995fc29: Pushed
cdab5297a5d0: Pushed
e7a81747f03f: Pushed
734464f601aa: Pushed
8e2221df508a: Pushed
f15e1341f657: Pushed
3887d9858739: Pushed
8aa8359339c2: Pushed
535e6d60782f: Pushed
9dfa40a0da3b: Pushed
fcf9c8f4a4bd: Pushed

exit code 137

An exit code 137 indicates that your host machine is killing the container process with OOM kill due to lack of memory [1]. It sounds like you need to provision a larger machine.

[1] https://github.com/moby/moby/issues/21083

dmesg | egrep -i "killed process"
grep "Killed process" /var/log/syslog
egrep -i -r 'killed process' /var/log/
Nothing so far

I’ve even put watch -n 1 free -m to monitor the memory while it was running the task, there was at least 2.5 gb free memory when it exited with 137

When it failed i restarted the build, then first image got built and pushed to the docker repo, it consumed around 2-3 gb ram, then it failed at next one, when it reached 1 gb ram remaining, what is taking all the memory?
my /tmp was 177 mb the place i keep my gradle caches

I also tried to add new agent on another server with 16 gb ram, same story, first went through second failed

I recommend debugging further why the Docker daemon is returning a 137 exit code, and perhaps contacting Docker support. They will be able to better advise what that error code means, and possible ways to debug it.

If i ran build outside drone i don’t have such issue, i don’t think there’s problem with docker itself

There are no known issues with the Docker plugin, however, if you are able to consistently reproduce an issue please consider sending a patch.

Well it never completes building both projects, it can only build one of them, but i can manually build them using docker-compose build at the same time without issues.

I’ve been building those images manually until now, and i just decided to automate it with the CI and i was surprised that it was failing at random places, something kills it but i am sure its not OOM Killer, server has a lot of memory available

I did lots of tests and i couldn’t figure out what was the issue, sometimes it succeeds on first image build, and fails on the second one.

Sometimes it fails even at the first image, i was monitoring docker stats while it was building even container of the container e.g. docker exec -it 0_{commit sha}_step5 docker stats and i couldn’t notice any lack of resource issues.

I tried another CI and there it worked from the first attempt and 50 sub-sequential attempts

What other CI did you try?

I have spent days working around similar issues with Drone…

the docker plugin is open source:

you can run the plugin directly from the command line to test and try to come up with steps to reproduce the issue without having to trigger a full pipeline:

the 137 exit code usually indicates something was cancelled or received an oom signal or maybe your build exceeded the default 60 minute timeout? We also do not know what kind of pipeline you are running or what version of Drone, nor do we also do not have any steps to reproduce, which makes it hard to offer assistance.