Metadata-Version: 2.1
Name: docker-remote-sync
Version: 0.2.3
Summary: 
Author: Vamsi Talupula
Author-email: tanavamsikrishna@outlook.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: colorama (>=0.4.6,<0.5.0)
Requires-Dist: docker (>=6.1.3,<7.0.0)
Requires-Dist: fabric (>=3.2.2,<4.0.0)
Description-Content-Type: text/markdown

A utility to sync docker images between 2 machines while transferring only the changed layers

# Installation
`pipx install docker-remote-sync` or `pip install docker-remote-sync`

# Usage
```
usage: docker-remote-sync [-h] [--port PORT] image_name remote destination_folder

Utility to sync updated docker layers between 2 docker host machines

positional arguments:
  image_name          Docker image (along with tag) on local machine
  remote              Address of remote with
  destination_folder  Cache folder on destination

options:
  -h, --help          show this help message and exit
  --port PORT         Alternate ssh port on remote

○ Do not delete the cache folder on remote machine to be able to take advantage of incremental file sync
○ The tar file on remote which is the snapshot of local docker image with be at location <<destination_folder>>.tar
○ This tar file can be "loaded" into docker using `docker load -i <<destination_folder>>.tar`
○ Example usage: `docker-remote-sync myalpine:latest remotehost /tmp/myalpine_remotefolder`
```

Example:
```
docker-remote-sync myalpine:latest remotehost /tmp/myalpine_syncfolder
```
