title: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version
body: <p>When I upload Dockerrun.aws.json to Elastic Beanstalk, I get the following errors in EB.</p>
  
  <p>On events:</p>
  
  <pre><code>- During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
  - Failed to deploy application.
  - Unsuccessful command execution on instance id(s) 'i-XXXXXXXXXXXXXXX'. Aborting the operation.
  </code></pre>
  
  <p>On Health:</p>
  
  <pre><code>Overall:
  - Command failed on all instances. 
  - Incorrect application version found on all instances. Expected version "Sample Application" (deployment 1).
  i-XXXXXXXXXXXX:
  - Application deployment failed at 2020-06-13T11:21:07Z with exit status 1 and error: Engine execution has encountered an error.
  - Incorrect application version "43" (deployment 5). Expected version "Sample Application" (deployment 1).
  </code></pre>
  
  <p>On Logs:</p>
  
  <pre><code>Error response from daemon: You cannot remove a running container XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Stop the container before attempting removal or force remove
  Error response from daemon: conflict: unable to delete XXXXXXXXXXXX (cannot be forced) - image is being used by running container XXXXXXXXXXXX
  </code></pre>
  
  <p>My Dockerrun.aws.json file:</p>
  
  <pre><code>{
    "AWSEBDockerrunVersion": "1",
    "Authentication": {
      "Bucket": "try-new-new",
      "Key": ".docker/config.json"
    },
    "Image": {
      "Name": "registry.gitlab.com/XXXXXXXXX/XXXXXXXXXX",
      "Update": "true"
    },
    "Ports": [
      {
        "ContainerPort": "80"
      }
    ]
  }
  </code></pre>
  
  <p>My .docker/config.json file:</p>
  
  <pre><code>{
   "auths" :
   {
      "https://registry.gitlab.com/" :
     {
        "auth" : "XXXXXXXXXXXXXXXXX",
        "email" : "abc@abc.com"
      }
     }
  } 
  </code></pre>