doracoin / Windows开机启动Podman容器

0 likes
0 forks
1 files
Last active 1757042883
Windows开机启动Podman容器脚本,将脚本放到C:\Users\YourName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
1 <#
2 .SYNOPSIS
3 启动 Windows 上的 Podman 容器
4
5 .DESCRIPTION
6 此脚本检查 Podman machine 状态,必要时启动它,然后启动指定的容器列表。
7 #>
8
9 # 配置参数
10 $PodmanWaitTime = 3