Forum Discussion
PowerShellUser123
Mar 30, 2022Copper Contributor
Uninstall application / Software after initializing docker container
I have a pipeline which initializes a docker container and the docker image has aws cli v1 installed. Here, I'm trying to uninstall v1 in order to install v2.
I tried the following command on my local machine and seems to be working but it doesn't seem to work inside container, it's just hanging..
$test = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq "AWS Command Line Interface"}
$test.Uninstall()
Does anyone have any ideas on how to uninstall application/programs inside containers in Azure Pipelines?
No RepliesBe the first to reply