CircleCI Docker退出代码137

Cha*_*ish 8 docker circleci

我正在使用- image: peopleperhour/dynamodb我的CircleCI配置文件中的docker镜像.

在CircleCI中,它输出以下内容.

Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:   false
DbPath: /var/dynamodb_local
SharedDb:   false
shouldDelayTransientStatuses:   false
CorsParams: *


Exited with code 137
Run Code Online (Sandbox Code Playgroud)

第一次测试通过正常,Exited with code 137直到后来才发生.但是一旦发生错误,所有测试都会失败.

我看到了这个链接并将我的代码更改为以下内容而没有运气.

  - image: peopleperhour/dynamodb
    environment:
        MAX_HEAP_SIZE: 2048m
        HEAP_NEWSIZE: 512m
Run Code Online (Sandbox Code Playgroud)

有想法该怎么解决这个吗?

yam*_*enk 0

作为解决方法,您可以尝试为容器指定重新启动策略:

- image: peopleperhour/dynamodb
  restart: on-failure # Restart the container if it exits due to an error
  environment:
    MAX_HEAP_SIZE: 2048m
    HEAP_NEWSIZE: 512m
Run Code Online (Sandbox Code Playgroud)