錯誤:只能對重新配置的通用和多容器Docker平臺使用「eb local」。amazon elastic beanstalk eb在我的機器上出現問題本地運行
我想在亞馬遜上創建一個多容器docker容器web服務器。 我已經在亞馬遜上創建了一個重新配置的通用多容器環境。 我試圖運行此命令之前測試我Dockerrun.aws.json
文件部署,但它不工作
我已經與亞馬遜的例子dockerrun測試,但沒有奏效
Dockerrun.aws.json
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "php-app",
"host": {
"sourcePath": "/var/app/current/php-app"
}
},
{
"name": "nginx-proxy-conf",
"host": {
"sourcePath": "/var/app/current/proxy/conf.d"
}
}
],
"containerDefinitions": [
{
"name": "php-app",
"image": "php:fpm",
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "php-app",
"containerPath": "/var/www/html",
"readOnly": true
}
]
},
{
"name": "nginx-proxy",
"image": "nginx",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": [
"php-app"
],
"mountPoints": [
{
"sourceVolume": "php-app",
"containerPath": "/var/www/html",
"readOnly": true
},
{
"sourceVolume": "awseb-logs-nginx-proxy",
"containerPath": "/var/log/nginx"
},
{
"sourceVolume": "nginx-proxy-conf",
"containerPath": "/etc/nginx/conf.d",
"readOnly": true
}
]
}
]
}
它回答我的問題 – Marcelo
如果你能回答這個問題對我來說太有原因的。 https://stackoverflow.com/questions/46165305/error-writing-dockerrun-aws-json-v2-file – Marcelo
已經做到了。 :-) – mkubaczyk