Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue to send the compressed difference between the two images #8

Open
ClouDevops101 opened this issue Mar 1, 2018 · 0 comments
Open

Comments

@ClouDevops101
Copy link

ClouDevops101 commented Mar 1, 2018

I try to build a layer on the top of an existing images, and then send the delta between local and remote :

docker file : FROM nginx:latest RUN apt-get update && apt-get install -y apache2 && apt-get clean && rm -rf /var/lib/apt/lists/*
then i build the images
sudo docker build -t="nginx:1.34" .

then i try to transfer the diff between local and remote (the basic nginx images already exit in remote ) :

/usr/local/bin/syncregistry [email protected] nginx:1.34 -p

Getting source image ancestors DONE Searching all dest images DONE Found common parent: sha256:e548f1a579cf5 111-----/tmp/nginx_1.34_151989222218_sync_temp.tar.gz------sha256:e548f1a579cf529320a3c1d8789399e5fea0bfaa04cbb70d03890afafb748a2f Dumping local parent Traceback (most recent call last): File "/usr/local/bin/syncregistry", line 239, in <module> main() File "/usr/local/bin/syncregistry", line 86, in main _, output = execute("docker save -o %s %s"%(file_name, common_parent)) File "/usr/local/bin/syncregistry", line 202, in execute p = subprocess.Popen(parts, stdout=subprocess.PIPE) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

I had to do some few changes to make the script more 2.7 friendly 👍
https://github.com/LinuxArchitects/docker-sync/blob/master/docker-sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant