加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

CircleCI Docker退出代码137

发布时间:2020-12-16 03:42:24 所属栏目:安全 来源:网络整理
导读:我正在使用 image:peopleperhour / dynamodb作为我的CircleCI配置文件中的docker镜像. 在CircleCI中,它输出以下内容. Initializing DynamoDB Local with the following configuration:Port: 8000InMemory: falseDbPath: /var/dynamodb_localSharedDb: false

我正在使用 – 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

第一个测试通过罚款,退出代码137直到后来才发生.但是一旦发生错误,所有测试都会失败.

我看到this链接,并将我的代码更改为以下没有运气.

  - image: peopleperhour/dynamodb
    environment:
        MAX_HEAP_SIZE: 2048m
        HEAP_NEWSIZE: 512m

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

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

- image: peopleperhour/dynamodb
  restart: on-failure # Restart the container if it exits due to an error
  environment:
    MAX_HEAP_SIZE: 2048m
    HEAP_NEWSIZE: 512m

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读