#AzureIoT – Mapping a local ☁ Azure IoT Edge folder module with an Edge device folder 📁

Buy Me A Coffee

Hi !

Another quick post in [Brain backup mode]. This one for a very simple scenario when working with Azure IoT modules:

Mapping a local folder in an Azure IoT Edge module with an Edge device folder

There is a full post on Azure IoT Documentation (see references). And I’ll resume the post here.

Add this configuration to

{
    "HostConfig": {
        "Binds": [
            "[EdgeDeviceFolder]:[AzureIoTModuleFolder]"
        ]
    }
}

Where:

  • EdgeDeviceFolder is the folder on the edge device
  • AzureIoTModuleFolder is the folder on the module, defined the docker image

Of course, you need to grant access to the EdgeDeviceFolder. 2 commands for this

sudo chown 1000 <EdgeDeviceFolder>
sudo chmod 700 <EdgeDeviceFolder>

And that’s it! super easy!

Happy coding!

Greetings

El Bruno


References


¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

2 thoughts on “#AzureIoT – Mapping a local ☁ Azure IoT Edge folder module with an Edge device folder 📁

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.