2026年8月5日星期三

Use Powershell command to backup/restore all docker images

Backup all docker images: 


docker images -q | ForEach-Object { &docker save -o "$_.tar" $_ }


Restore all images:


ls -name *.tar | ForEach-Object { &docker load -i $_ }


沒有留言: