amazon web services - Elastic Beanstalk Multicontainer Docker environment: no entries in etc/hosts for lined containers -


i have environment few containers. of them linked. when run environment "docker-compose -d", creates entries in etc/hosts linked containers. when run "eb local run", no entries created. why that?

my dockerrun.aws.json

{       "awsebdockerrunversion": 2,       "containerdefinitions": [         {           "name": "api",           "image": "php7",           "essential": true,           "memory": 128,           "portmappings": [             {               "hostport": 8080,               "containerport": 80             }           ],           "mountpoints": [             {               "sourcevolume": "api",               "containerpath": "/var/www/html/"             }           ]         },         {           "name": "nodeapi",           "image": "nodejs",           "essential": true,           "memory": 256,           "portmappings": [             {               "hostport": 5000,               "containerport": 5000             }           ],           "mountpoints": [             {               "sourcevolume": "nodeapi",               "containerpath": "/var/www/app/"             }           ],           "logging": "/var/eb_log"         },         {           "name": "proxy",           "image": "nginx",           "essential": true,           "memory": 128,           "links": [             "api",             "nodeapi"           ],           "portmappings": [             {               "hostport": 8443,               "containerport": 80             }           ]         }       ]     } 

this generates docker-compose.yml:

    api:       image: php7       ports:       - 8080:80     nodeapi:       image: nodejs       ports:       - 5000:5000     proxy:       image: nginx       links:       - api:api       - nodeapi:nodeapi       ports:       - 8443:80 

docker switched dns based lookups while instead of adding entries /etc/hosts. linking discouraged in favor of using common network containers.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -