LinuxCommandLibrary

portablectl

Manage systemd portable service images

TLDR

TLDR

List portable service images

$ portablectl list
copy
Attach image to system
$ portablectl attach [path/to/image]
copy
Detach image from system
$ portablectl detach [image_name]
copy
Inspect image metadata
$ portablectl inspect [path/to/image]
copy
Check if image is attached
$ portablectl is-attached [image_name]
copy

SYNOPSIS

portablectl [list|attach|detach|inspect|is-attached] [options] [image]

DESCRIPTION

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.

PARAMETERS

--copy _mode_

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

COMMANDS

list

List discovered portable service images
attach
Attach image to system
detach
Detach image from system
inspect
Show image details and metadata
is-attached
Check attachment status
reattach
Detach and reattach image

CAVEATS

Requires systemd 239+. Images must follow portable service format. Attachment requires root privileges. Profile controls sandboxing level.

HISTORY

portablectl was introduced with systemd portable services as a lightweight containerization solution. It provides isolation benefits while maintaining tight integration with the systemd service manager.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community