Skip to main content

Pull or push docker images through an SSH host

Project description

         _    __
 _ __   (_)  / _|  _ __
| '_ \  | | | |_  | '__|
| |_) | | | |  _| | |
| .__/  |_| |_|   |_|
|_|

Package License

Pull docker image from remote host, or push local image to remote host

Install

It is recommended to run directly with uvx. How to install uv?

uvx pifr

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pifr-0.1.4.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pifr-0.1.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pifr-0.1.4.tar.gz.

File metadata

  • Download URL: pifr-0.1.4.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pifr-0.1.4.tar.gz
Algorithm Hash digest
SHA256 098257d1933590cf02e6f1b2bd136a1860780236662b8c18a487b17f93d500f0
MD5 fdf2c441c6422aef4067b5cc687d6177
BLAKE2b-256 f44744e58be980f85bb808b558e82b031b05e99f78887c42e0da7c544b1b521b

See more details on using hashes here.

File details

Details for the file pifr-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pifr-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pifr-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9d0cc2644542aeed1a0019620b6b52b14e66048bf0418994e0e51e8a2f02e750
MD5 070fc781f60d4a03fb3b0a781fd6fc9b
BLAKE2b-256 a3d65a9bb8513f6847a539b5406a70534f45f267d8f20085ad76b13e31de5ae0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page