Unable to use AWS Elastic Beanstalk with Docker to deploy WordPress

I created a new environment in AWS Elastic Beanstalk, running Docker and import my Dockerrun.aws.json file however it does not deploy correctly. Here’s my Dockerrun.aws.json file I upload – Can anyone tell me what’s wrong with it?

{
"AWSEBDockerrunVersion": "1",
"Image": {
    "Name": "wordpress"
},
"Ports": [
    {
        "ContainerPort": "80"
    }
]
}

  • Get Environment Variable from Docker Container
  • How to connect to 'real' localhost from inside my VM boot2docker container?
  • Upgrading docker without affecting running containers
  • Docker official registry (Docker Hub) URL
  • Docker containers in different directories under one daemon
  • Failed to limit memory with docker compose
  • How to build a docker container for a java app
  • Connect nginx on host with wsgi unicorn inside docker container
  • How to fix Docker's “Error pulling image…too many redirects” failures while pulling images from registry?
  • error while setting file capabilities in Docker
  • Run containers as other user
  • Unable to mount MySQL data volume to Kubernetes Minikube pod
  • One Solution collect form web for “Unable to use AWS Elastic Beanstalk with Docker to deploy WordPress”

    Docker run file seems ok for me. The following worked fine:

    {
      "AWSEBDockerrunVersion": "1",
      "Image": {
        "Name": "wordpress",
        "Update": "false"
      },
      "Ports": [
        {
          "ContainerPort": "80"
        }
      ],
      "Logging": "/var/log/nginx"
    }
    

    Make sure you have all EB env vars setup for MySQL connection. Otherwise it deploy will fail.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.