79673747

Date: 2025-06-20 17:16:59
Score: 1
Natty:
Report link

As a complement to the above answer, this is the native powershell equivalent:

docker ps -a -q | ForEach-Object {
    $id = $_
    $info = docker inspect $id | ConvertFrom-Json
    $name = $info[0].Name.TrimStart("/")
    $policy = $info[0].HostConfig.RestartPolicy.Name
    "$name`t$policy"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user30853633