首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >执行"eb本地运行“时”注册表配置无效“错误

执行"eb本地运行“时”注册表配置无效“错误
EN

Stack Overflow用户
提问于 2017-05-17 14:28:42
回答 3查看 1K关注 0票数 12

我认为这是一个很容易解决的问题,但我似乎无法解决它!我花了很长时间寻找谷歌的任何线索,但没有找到解决方案。

在执行eb local run时,我会得到以下错误:

注册表配置无效

代码语言:javascript
运行
复制
$ eb local run                        
ERROR: InvalidConfigFile :: Invalid configuration for registry 12345678.dkr.ecr.eu-west-1.amazonaws.com

我的Dockerrun.aws.json中的图像行如下:

代码语言:javascript
运行
复制
{
  "AWSEBDockerrunVersion": 2,
  "volumes": [
      {
          "name": "frontend",
          "host": {
              "sourcePath": "/var/app/current/frontend"
          }
      },
      {
          "name": "backend",
          "host": {
              "sourcePath": "/var/app/current/backend"
          }
      },
      {
        "name": "nginx-proxy-conf",
        "host": {
          "sourcePath": "/var/app/current/config/nginx"
        }
      },
      {
        "name": "nginx-proxy-content",
        "host": {
          "sourcePath": "/var/app/current/content/"
        }
      },
      {
        "name": "nginx-proxy-ssl",
        "host": {
          "sourcePath": "/var/app/current/config/ssl"
        }
      }

  ],
    "containerDefinitions": [
        {
            "name": "backend",
            "image": "123456.dkr.ecr.eu-west-1.amazonaws.com/backend:latest",
            "Update": "true",
            "essential": true,
            "memory": 512,
            "mountPoints": [
                {
                    "containerPath": "/app/backend",
                    "sourceVolume": "backend"
                }
            ],
            "portMappings": [
                {
                    "containerPort": 4000,
                    "hostPort": 4000
                }
            ],
            "environment": [
                {
                    "name": "PORT",
                    "value": "4000"
                },
                {
                    "name": "MIX_ENV",
                    "value": "dev"
                },
                {
                    "name": "PG_PASSWORD",
                    "value": "xxsaxaax"
                },
                {
                    "name": "PG_USERNAME",
                    "value": "
                },
                {
                    "name": "PG_HOST",
                    "value": "123456.dsadsau89das.eu-west-1.rds.amazonaws.com"
                },
                {
                    "name": "FE_URL",
                    "value": "http://develop1.com"
                }


            ]
        },
        {
            "name": "frontend",
            "image": "123456.dkr.ecr.eu-west-1.amazonaws.com/frontend:latest",
            "Update": "true",
            "essential": true,
            "memory": 512,
            "links": [
                "backend"
            ],
            "command": [
                "npm",
                "run",
                "production"
            ],
            "mountPoints": [
                {
                    "containerPath": "/app/frontend",
                    "sourceVolume": "frontend"
                }
            ],
            "portMappings": [
                {
                    "containerPort": 3000,
                    "hostPort": 3000
                }
            ],
            "environment": [
                {
                    "name": "REDIS_HOST",
                    "value": "www.eample.com"
                }
            ]
        },
        {
          "name": "nginx-proxy",
          "image": "nginx",
          "essential": true,
          "memory": 128,
          "portMappings": [
            {
              "hostPort": 80,
              "containerPort": 3000
            }
          ],
          "links": [
              "backend",
              "frontend"
          ],
          "mountPoints": [
            {
              "sourceVolume": "nginx-proxy-content",
              "containerPath": "/var/www/html"
            },
            {
              "sourceVolume": "awseb-logs-nginx-proxy",
              "containerPath": "/var/log/nginx"
            },
            {
              "sourceVolume": "nginx-proxy-conf",
              "containerPath": "/etc/nginx/conf.d",
              "readOnly": true
            },
            {
              "sourceVolume": "nginx-proxy-ssl",
              "containerPath": "/etc/nginx/ssl",
              "readOnly": true
            }
          ]
        }
    ],
    "family": ""
}
EN

Stack Overflow用户

发布于 2017-07-31 16:25:28

这是因为awsebcli工具的当前版本中的依赖项过时了。他们将“docker (>=1.1.0,<=1.7.2)”版本固定在不支持更新的凭据辅助格式的版本上。最新版本的docker-py是第一个正确支持最新凭据帮助格式的版本,直到AWS开发人员将docker-py更新为使用2.4.0 (https://github.com/docker/docker-py/releases/tag/2.4.0)为止,这仍然是错误的。

票数 3
EN
查看全部 3 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44027709

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档