title: What is the proper configuration to persist edgeAgent storage?
body: <p>I am working on an Azure IoT Edge project. Currently I am going through the <a href="https://docs.microsoft.com/en-ca/azure/iot-edge/production-checklist" rel="nofollow noreferrer">production readiness checklist</a>. I followed the documentation to <a href="https://docs.microsoft.com/en-ca/azure/iot-edge/how-to-access-host-storage-from-module" rel="nofollow noreferrer">use storage on the host filesystem</a> for the edgeAgent and edgeHub modules. </p>
  
  <p>When I run <code>sudo iotedge check</code> edgeHub is OK but edgeAgent raises a warning:</p>
  
  <pre><code>‼ production readiness: Edge Agent's storage directory is persisted on the host filesystem - Warning
      The edgeAgent module is not configured to persist its /tmp/edgeAgent directory on the host filesystem.
      Data might be lost if the module is deleted or updated.
      Please see https://aka.ms/iotedge-storage-host for best practices.
  √ production readiness: Edge Hub's storage directory is persisted on the host filesystem - OK
  </code></pre>
  
  <p>Here is a snippet from the deployment template:</p>
  
  <pre><code>"systemModules": {
    "edgeAgent": {
      "type": "docker",
      "settings": {
        "image": "mcr.microsoft.com/azureiotedge-agent:1.0",
        "createOptions": {
          "HostConfig": {
            "Binds": [
              "/home/pi/iotedge/edgeAgent/storage/:/iotedge/storage/"
            ]
          }
        }
      },
      "env": {
        "storageFolder": {
          "value": "/iotedge/storage/"
        }
      }
    },
    "edgeHub": {
      "type": "docker",
      "status": "running",
      "restartPolicy": "always",
      "settings": {
        "image": "mcr.microsoft.com/azureiotedge-hub:1.0",
        "createOptions": {
          "HostConfig": {
            "Binds": [
              "/home/pi/iotedge/edgeHub/storage:/iotedge/storage/"
            ],
            "PortBindings": {
              "5671/tcp": [
                {
                  "HostPort": "5671"
                }
              ],
              "8883/tcp": [
                {
                  "HostPort": "8883"
                }
              ],
              "443/tcp": [
                {
                  "HostPort": "443"
                }
              ]
            }
          }
        }
      },
      "env": {
        "storageFolder": {
          "value": "/iotedge/storage/"
        }
      }
    }
  },
  </code></pre>