Files
tldr/pages.zh/linux/portablectl.md

24 lines
717 B
Markdown

# portablectl
> 一款用于在Linux系统上管理和部署可移植服务镜像的systemd工具。
> 更多信息:<https://www.freedesktop.org/software/systemd/man/portablectl.html>。
- 列出在可移植镜像搜索路径中发现的可用可移植服务镜像:
`portablectl list`
- 将可移植服务镜像附加到主机系统:
`portablectl attach {{path/to/image}}`
- 将可移植服务镜像从主机系统中分离:
`portablectl detach {{path/to/image|image_name}}`
- 显示指定可移植服务镜像的详细信息和元数据:
`portablectl inspect {{path/to/image}}`
- 检查可移植服务镜像是否已附加到主机系统:
`portablectl is-attached {{path/to/image|image_name}}`