Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-05-09T20:08:15Z }'
- 2018-05-09T20:08:15Z + local 'CONTAINER_STOPPED_REASONS=web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
- 2018-05-09T20:08:15Z
- 2018-05-09T20:08:15Z db: '
- 2018-05-09T20:08:15Z + '[' -n 'Essential container in task exited' ']'
- 2018-05-09T20:08:15Z + error 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
- 2018-05-09T20:08:15Z
- 2018-05-09T20:08:15Z db: )'
- 2018-05-09T20:08:15Z + echo 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
- 2018-05-09T20:08:15Z
- 2018-05-09T20:08:15Z db: )'
- 2018-05-09T20:08:15Z ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
- 2018-05-09T20:08:15Z
- 2018-05-09T20:08:15Z db: )
- 2018-05-09T20:08:15Z + eventHelper.py --msg 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
- 2018-05-09T20:08:15Z
- 2018-05-09T20:08:15Z db: )' --severity ERROR
- version: '3'
- services:
- db:
- image: postgres:10.1
- environment:
- - POSTGRES_USER=rdeng
- - POSTGRES_PASSWORD=walterfedy
- - POSTGRES_DB=db1
- ports:
- - "5432:5432"
- volumes:
- - postgres_data:/var/lib/postgresql/data/
- web:
- image: rdeng/test:latest
- build: this
- environment:
- - RDS_DB_NAME=db1
- - RDS_USERNAME=rdeng
- - RDS_HOSTNAME=db
- - RDS_PASSWORD=walterfedy
- - RDS_PORT=5432
- command: bash -c "python /code/manage.py makemigrations && python /code/manage.py migrate && python /code/manage.py runserver 0.0.0.0:8000"
- volumes:
- - this:/code
- ports:
- - "8000:8000"
- depends_on:
- - db
- volumes:
- postgres_data:
- {
- "AWSEBDockerrunVersion": 2,
- "containerDefinitions": [
- {
- "environment": [
- {
- "name": "POSTGRES_USER",
- "value": "rdeng"
- },
- {
- "name": "POSTGRES_PASSWORD",
- "value": "walterfedy"
- },
- {
- "name": "POSTGRES_DB",
- "value": "db1"
- }
- ],
- "essential": true,
- "image": "postgres:10.1",
- "mountPoints": [
- {
- "containerPath": "/var/lib/postgresql/data/",
- "sourceVolume": "Postgres_Data"
- }
- ],
- "name": "db",
- "memory":64,
- "portMappings": [
- {
- "containerPort": 5432,
- "hostPort": 5432
- }
- ]
- },
- {
- "command": [
- "bash",
- "-c",
- "python /code/manage.py makemigrations && python /code/manage.py migrate && python /code/manage.py runserver 0.0.0.0:8000"
- ],
- "environment": [
- {
- "name": "RDS_DB_NAME",
- "value": "db1"
- },
- {
- "name": "RDS_USERNAME",
- "value": "rdeng"
- },
- {
- "name": "RDS_HOSTNAME",
- "value": "db"
- },
- {
- "name": "RDS_PASSWORD",
- "value": "walterfedy"
- },
- {
- "name": "RDS_PORT",
- "value": "5432"
- }
- ],
- "essential": true,
- "memory":64,
- "image": "rdeng/test:latest",
- "mountPoints": [
- {
- "containerPath": "/code",
- "sourceVolume": "code"
- }
- ],
- "name": "web",
- "portMappings": [
- {
- "containerPort": 8000,
- "hostPort": 8000
- }
- ]
- }
- ],
- "family": "",
- "volumes": [
- {
- "host": {
- "sourcePath": "postgres_data"
- },
- "name": "Postgres_Data"
- },
- {
- "host": {
- "sourcePath": "."
- },
- "name": "code"
- }
- ]
- }
Add Comment
Please, Sign In to add comment