_ __
_ __ (_) / _| _ __
| '_ \ | | | |_ | '__|
| |_) | | | | _| | |
| .__/ |_| |_| |_|
|_|
Pull docker image from remote host, or push local image to remote host
It is recommended to run directly with uvx. How to install uv?
uvx pifr
Pull an image through a host
pifr pull <host_name> <image_name>
pifr pull remote-host hello-world
Push a local image to a remote host
pifr push <image_name> <host_name>
pifr push hello-world remote-host
This is useful when the local machine acts as an intermediary to transfer images between two hosts that cannot reach each other directly.
To see all of pifr's documentation, run pifr --help
Usage: pifr [OPTIONS] COMMAND [ARGS]...
Pull docker image from remote host, or push local image to remote host.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
list 列出 SSH 配置中的主机 List hosts from ~/.ssh/config.
pull 在远端主机拉取镜像,保存并导入到本地 Pull image at remote host and save it to local.
push 将本地镜像保存并推送到远端主机 Push local image to remote host.
Examples:
pifr list
pifr pull remote-host alpine:latest
pifr push alpine:latest remote-host