AWS ElasticBeanstalk Docker:由于ERROR:JSONDecodeError,eb本地运行崩溃
我有运行eb local run
问题。 这是错误:
# terminal user » eb local run Creating elasticbeanstalk_postgres_1... /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/docker/utils/utils.py:618: UserWarning: docker.utils.create_host_config() is deprecated. Please use Client.create_host_config() instead. 'docker.utils.create_host_config() is deprecated. Please use ' Creating elasticbeanstalk_django_1... Pulling image merrymaker/django:1.1... <generator object Client._stream_helper at 0x1044bbd00> b'{"status":"Pulling from foo/django","id":"1.1"}\r\n{"status":"Already exists","progressDetail":{},"id":"ad74af05f5a2"}\r\n' ERROR: JSONDecodeError :: Extra data: line 2 column 1 (char 56)
我相信这是一个与版本有关的问题,因为这只是在我做了一些升级之后才出现的,这里是我的机器的细节:
# OS: macOS Sierra 10.12.5 user » docker --version Docker version 17.06.2-ce, build cec0b72 user » docker-compose --version dockerdocker-compose version 1.11.2, build dfed245 user » docker-machine --version docker-machine version 0.12.2, build 9371605 user » aws --version aws-cli/1.11.149 Python/3.6.1 Darwin/16.6.0 botocore/1.7.7 user » eb --version EB CLI 3.10.6 (Python 3.6.1)
有任何想法吗?
编辑:Dockerrun.aws.json文件
{ "AWSEBDockerrunVersion": 2, "containerDefinitions": [ { "essential": true, "image": "nginx:1.11.6-alpine", "memory": 32, "links": ["react"], "mountPoints": [ { "containerPath": "/etc/nginx/conf.d/default.conf", "sourceVolume": "nginx_conf" } ], "name": "nginx", "portMappings": [ { "containerPort": 4000, "hostPort": 80 } ] }, { "entryPoint": [ "/react-entrypoint.sh" ], "memory": 256, "image": "foo/react:1.1", "environment": [ { "name": "SERVER_PROD_HOST", "value": "0.0.0.0" }, { "name": "SERVER_PROD_PORT", "value": "4000" }, { "name": "GRAPHQL_URL", "value": "${GRAPHQL_URL}" } ], "essential": true, "portMappings": [ { "containerPort": 4000, "hostPort": 4000 } ], "mountPoints": [ { "containerPath": "/react", "sourceVolume": "react_root" }, { "containerPath": "/react/node_modules", "sourceVolume": "node_modules" } ], "name": "react" } ], "family": "", "volumes": [ { "host": { "sourcePath": "/var/app/current/docker/nginx/default.conf" }, "name": "nginx_conf" }, { "host": { "sourcePath": "/var/app/current" }, "name": "react_root" }, { "host": { "sourcePath": "node_modules" }, "name": "node_modules" } ] }
- 如何在AWS Elastic Beanstalk Docker容器中loggingPHP错误
- 从Docker Elastic Beanstalk容器中获取Elasticache地址
- 在Dockerrun源码包中部署AWS Elastic Beanstalk Docker部署中的ebextensionsconfiguration的位置?
- Docker在AWS Elastic Beanstalk上的Docker
- 如何在Elastic Beanstalk多容器docker上使用fluentd日志驱动程序
- Elastic Beanstalk多容器Docker环境:在两个API之间redirect请求
- 如何自定义Elastic Beanstalk上的docker run命令?
- 使用docker composer在AWS beanstalk上部署docker
- 为什么我得到docker / aws eb上的权限被拒绝?