In this article, I’ll show you how to download files from the Internet directly to a running Windows Container using PowerShell.
One of the most frustrating things about Containers is that you can’t easily copy and paste data into a container or just copy them directly.
The only way to do so is by attaching a storage volume which sometimes Is a bit overkill when you don’t need a data volume.
To download files directly to my container I’ll use the Wget PowerShell cmdlet.
Before you start, don’t try to download files directly to the C:\ drive, create a sub folder and save the to it.
In my case, I’ll create a folder called Install and I’ll download the file to it.
New-Item Install -ItemType directory
To download the file, I use the cmdlet below:
wget -Uri https://download.sysinternals.com/files/SysinternalsSuite.zip -UseBasicParsing