Linux command
importctl 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Download
sudo importctl pull-tar [URL] [name]
Pull
sudo importctl pull-raw [https://example.com/source.ext] [name] --class=[machine|portable|sysext|confext]
Import
importctl import-raw [path/to/file.ext] [name] --class=[machine|portable|sysext|confext]
List
importctl list-transfers
Cancel
importctl cancel-transfer [transfer-id]
Export
importctl export-tar --class=[machine|portable|sysext|confext] [name] [path/to/file.ext]
说明
importctl manages disk images for systemd containers and system extensions. It can download, import, and export various image formats including tarballs, raw disk images, and qcow2 virtual machine images. The tool integrates with systemd-machined and systemd-importd services to handle image management for containers, portable services, and system/configuration extensions.
参数
- pull-tar _URL_ _NAME_
- Download and import tarball from URL
- pull-raw _URL_ _NAME_
- Download and import raw/qcow2 disk image
- import-tar _FILE_ _NAME_
- Import local tarball into image directory
- import-raw _FILE_ _NAME_
- Import local raw disk image
- export-tar _NAME_ _FILE_
- Export container as tarball
- export-raw _NAME_ _FILE_
- Export container as raw disk image
- list-transfers
- Show currently running transfers
- cancel-transfer _ID_
- Cancel a running import, export, or download
- --class _TYPE_
- Image class: machine, portable, sysext, confext
- --verify _MODE_
- Verification mode for downloads: no, checksum, signature (default: signature)
- --format _FORMAT_
- Image format for raw operations: raw, qcow2 (default: raw)
FAQ
What is the importctl command used for?
importctl manages disk images for systemd containers and system extensions. It can download, import, and export various image formats including tarballs, raw disk images, and qcow2 virtual machine images. The tool integrates with systemd-machined and systemd-importd services to handle image management for containers, portable services, and system/configuration extensions.
How do I run a basic importctl example?
Run `sudo importctl pull-tar [URL] [name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does pull-tar _URL_ _NAME_ do in importctl?
Download and import tarball from URL