18.9.运行第一个容器
各个选项的含义见 podman-run(1)。以下调用会创建一个新容器并附加交互式终端,退出时删除该容器:
# podman run -it --rm ghcr.io/freebsd/freebsd-notoolchain:{rel-latest}
# top -b
last pid: 24414; load averages: 0.47, 0.51, 0.53; battery: 23% up 0+18:48:46 23:30:12
2 processes: 1 running, 1 sleeping
CPU: 6.9% user, 0.0% nice, 2.2% system, 0.7% interrupt, 90.2% idle
Mem: 2619M Active, 6587M Inact, 1813M Laundry, 4552M Wired, 56K Buf, 334M Free
ARC: 2526M Total, 802M MFU, 1219M MRU, 3586K Anon, 29M Header, 467M Other
1625M Compressed, 4234M Uncompressed, 2.61:1 Ratio
Swap: 10G Total, 219M Used, 10G Free, 2% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
17963 root 1 1 0 14M 3120K wait 1 0:00 0.44% sh
24414 root 1 3 0 15M 2992K CPU0 0 0:00 0.00% top
# exit最后更新于