小编Yus*_*ğdu的帖子

AWS Elastic Beanstalk EFS 挂载错误:未知文件系统类型“efs”

我正在尝试使用 Dockerrun.aws.json 的任务定义将我的 EFS 安装到多 Docker Elastic Beanstalk 环境。另外,我已将 EFS 的安全组配置为接受来自 EC2(EB 环境)安全组的 NFS 流量。

但是,我面临着错误:

ECS 任务因以下原因停止:来自守护程序的错误响应:创建 ecs-awseb-SeyahatciBlog-env-k3k5grsrma-2-wordpress-88eff0a5fc88f9ae7500:VolumeDriver.Create:安装卷失败:安装:未知文件系统类型“efs”。

我正在使用 AWS 管理控制台上传此 Dockerrun.aws.json 文件:

{
  "AWSEBDockerrunVersion": 2,
  "authentication": {
    "bucket": "seyahatci-docker",
    "key": "index.docker.io/.dockercfg"
  },
  "volumes": [
    {
      "name": "wordpress",
      "efsVolumeConfiguration": {
        "fileSystemId": "fs-d9689882",
        "rootDirectory": "/blog-web-app/wordpress",
        "transitEncryption": "ENABLED"
      }
    },
    {
      "name": "mysql-data",
      "efsVolumeConfiguration": {
        "fileSystemId": "fs-d9689882",
        "rootDirectory": "/blog-db/mysql-data",
        "transitEncryption": "ENABLED"
      }
    }
  ],
  "containerDefinitions": [
    {
      "name": "blog-web-app",
      "image": "bireysel/seyehatci-blog-web-app",
      "memory": 256,
      "essential": false,
      "portMappings": [
        {"hostPort": 80, "containerPort": 80} …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services docker amazon-elastic-beanstalk amazon-efs ecs-taskdefinition

5
推荐指数
2
解决办法
2万
查看次数