DockerでビルドされたレールアプリケーションをElastic Beanstalkのマルチコンテナサービスに配備しようとしています。私config.json
ファイルがバケツmyapp/config.json
にあり、同じようにフォーマットされDockerrun.json専用ファイル用ファイル
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "myapp",
"host": {
"sourcePath": "/var/app/current"
}
},
{
"name": "myapp-redis",
"host": {
"sourcePath": "/var/app/current/myapp-redis"
}
},
{
"name": "myapp-postgres",
"host": {
"sourcePath": "/var/app/current/myapp-postgres"
}
}
],
"authentication": {
"bucket": "myapp",
"key": "config.json"
},
"containerDefinitions": [
{
"name": "redis",
"image": "redis:3.0.5",
"environment": [
{
"name": "Container",
"value": "redis"
}
],
"portMappings": [
{
"hostPort": 6379,
"containerPort": 6379
}
],
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "myapp-redis",
"containerPath": "/var/lib/redis/data",
"readOnly": false
}
]
},
{
"name": "postgres",
"image": "postgres:9.4.5",
"environment": [
{
"name": "Container",
"value": "postgres"
}
],
"portMappings": [
{
"hostPort": 5432,
"containerPort": 5432
}
],
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "myapp-postgres",
"containerPath": "/var/lib/postgresql/data",
"readOnly": false
}
]
},
{
"name": "myapp",
"image": "myrepo/myapp:latest",
"environment": [
{
"name": "Container",
"value": "myapp"
}
],
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "myapp",
"containerPath": "/myapp",
"readOnly": false
}
]
}
]
}
::私は"image": "myrepo/myapp:latest",
ラインの公開リポジトリをポイントすると、この設定が機能する
{
"https://index.docker.io/v1/": {
"auth": "mylongauthtokenhere",
"email": "[email protected]l.com"
}
}
のように私のDockerrun.aws.jsonは現在に見えます私も運を持ついくつかの異なる方法config.json configuing試したerr="Error: image myrepo/myapp:latest not found"
とERROR [Instance: i-913b2004] Command failed on instance. Return code: 1 Output: 'Failed to start ECS task after retrying 2 times.'
:私はこの設定を初期化しようとすると、私はエラーを取得します。これについての助けがあれば、大歓迎です!
パブリック・リポジトリを指すこの設定を使用すると、それは機能しますが、プライベート・リポジトリを指し示すとエラーが発生します(他のすべては同じです) ? – Ray
ええ、私がそれをぶら下げている唯一のことを私が言うことができる限り、それは私的なレポであるという事実です。 – Raskolnikov
authの完全な内容を入れて、入れ子になっているかどうか確認したいですか?あなたの設定は1.7ドッカーか1.6&以前ですか? – Ray