Forum Discussion
Preloading IoT Edge containers into a device
emilm Yes, you can pre-seed the images using docker https://docs.docker.com/engine/reference/commandline/import/. Can you clarify what you mean by "tainting the IoT edge footprint"?
- emilmFeb 23, 2020Copper Contributor
Venkat Yalla Thank you! But doesn't docker import mean that you need to have the device running to import to it? I was thinking of avoid booting up the device.
When I mean tainting, I mean that Iot Edge daemon clears all the containers when it detects that the config has changed. How to avoid this? The config needs the registration ID unless I can provide it otherwise.
- Venkat YallaFeb 24, 2020Brass ContributorHow do you currently install the iotedge and docker daemons on the device?
- emilmFeb 24, 2020Copper Contributor
Venkat Yalla They are a part of the base image so not really installed. They are already there if you know what I mean.
The containers are not since they are data that changes and is on a separate, writable partition.
Is just copying everything under /var/lib/docker enough or do I need the entire home directory of IoT edge as well to include the deployment manifest? When IoT Edge Daemon starts up for the first time, or the config is changed (both are true for me since every device have their own registration ID) it will clear the containers and add them again.