Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 70 forks source link

[BUG] Dangling Containers and Images #627

Open RollsChris opened 6 months ago

RollsChris commented 6 months ago

Description

We have noticed that when we build our modules using: iotedgedev solution build It creates multiple containers and images. It will do this whenever there is a change to a stage in our Dockerfile which causes it to rebuild.

Building the Dockerfile for the module, on its own, does not give this behavior which points to this tool.

Expected behavior

I expect it to clean up all intermediate containers/ images that it creates. and dosent need for the final image.

Actual behavior

It looks like a container per stage in our file and 2 images labeled . one of them is over 1GB

Steps to Reproduce

Create a new Edge solution with a blank module. Fix the broken tool by adding a Dockerfile and module.json to the module. Build the solution. You should now see some strange containers and a couple images with as the name

Environment

iotedgedev, version 3.3.7 Python 2.7.18 pip 22.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9) Development machine: WSL with the offical iotedgedev container image IoT Edge device OS Version: using the simulator

Janjanus commented 5 months ago

I have the same issue when running iotedgedev solution build. Did you find any solutions in the mean time?

RollsChris commented 5 months ago

No not yet, and if you look you will see it eating your harddrive disk if your using wsl. I have found a way to revert that but still very annoying.

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jan de Boer @.> Sent: Wednesday, June 12, 2024 4:34:12 PM To: Azure/iotedgedev @.> Cc: Christopher Rollings @.>; Author @.> Subject: Re: [Azure/iotedgedev] [BUG] Dangling Containers and Images (Issue #627)

I have the same issue when running iotedgedev solution build. Did you find any solutions in the mean time?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/iotedgedev/issues/627#issuecomment-2163340381, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABOHIGZTS4Z6TX5H3TTD67LZHBS7JAVCNFSM6AAAAABJGTXYQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTGM2DAMZYGE. You are receiving this because you authored the thread.Message ID: @.***>

RollsChris commented 4 months ago

Any news on this... anyone