← 返回命令列表

Linux command

portablectl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

portablectl

portablectl

说明

portablectl manages systemd portable service images. Portable services are a lightweight container alternative, bundling services with their dependencies in disk images that can be attached to running systems. Images are self-contained and can include multiple services. They're useful for deploying applications without full containerization overhead.

参数

--copy _mode_
Copy mode: auto, copy, symlink
--profile _profile_
Use specific profile
--now
Start/stop units immediately
--enable
Enable units after attach

FAQ

What is the portablectl command used for?

portablectl manages systemd portable service images. Portable services are a lightweight container alternative, bundling services with their dependencies in disk images that can be attached to running systems. Images are self-contained and can include multiple services. They're useful for deploying applications without full containerization overhead.

How do I run a basic portablectl example?

Run `portablectl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --copy _mode_ do in portablectl?

Copy mode: auto, copy, symlink