Slide 77
Slide 77 text
77
ECS on EC2環境で実行してみる
{
"volumes": [
{ "name": "host-docker-sock", "host": { "sourcePath": "/var/run/docker.sock" } },
{ "name": "host-dev", "host": { "sourcePath": "/dev" } },
{ "name": "host-proc", "host": { "sourcePath": "/proc" } },
{ "name": "host-boot", "host": { "sourcePath": "/boot" } },
{ "name": "host-lob-modules", "host": { "sourcePath": "/lib/modules" } },
{ "name": "host-usr", "host": { "sourcePath": "/usr" } },
{ "name": "host-etc", "host": { "sourcePath": "/etc" } }
],
"containerDefinitions": [
{
"mountPoints": [
{ "containerPath": "/host/var/run/docker.sock", "sourceVolume": "host-docker-sock"},
{ "containerPath": "/host/dev", "sourceVolume": "host-dev" },
{ "containerPath": "/host/proc", "sourceVolume": "host-proc", "readOnly": true },
{ "containerPath": "/host/boot", "sourceVolume": "host-boot", "readOnly": true },
{ "containerPath": "/host/lib/modules", "sourceVolume": "host-lob-modules", "readOnly": true },
{ "containerPath": "/host/usr", "sourceVolume": "host-usr", "readOnly": true },
{ "containerPath": "/host/etc", "sourceVolume": "host-etc", "readOnly": true }
]
}
]
}
ECSタスク定義(一部抜粋)