Forum Discussion

PowerShellUser123's avatar
PowerShellUser123
Copper Contributor
Mar 30, 2022

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

Resources