tkrausjr / image-mover Goto Github PK
View Code? Open in Web Editor NEWA simple application utility for Moving Docker Images or migrating entire Registries
A simple application utility for Moving Docker Images or migrating entire Registries
python3 image-mover.py -i mysql:latest,redis:lastest -m sync -d harbor.corp.local/core
Image List provided as a flag. Images = ['mysql:latest', 'redis:lastest']
mysql:latest
Tag exists, tag = latest
redis:lastest
Tag exists, tag = lastest
args Mode = sync
args Source Registry = None
args Source Images = mysql:latest,redis:lastest
args Destination Registry =harbor.corp.local/core
Querying Destination Registry Host = harbor.corp.local/core
--Found Repositories on server
/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "image-mover.py", line 330, in
dst_repos = get_registry_images(dst_registry_proto, args.destination_registry)
File "image-mover.py", line 71, in get_registry_images
responseJson = response.json()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Src Imagename is vmwarecna/nginx
Slash in image name, New image is harbor.corp.local/core/nginx:latest
--Tagging temp Universe Image docker.io/vmwarecna/nginx:latest for new Registry harbor.corp.local/core/nginx:latest
Destination Docker Image to Push = harbor.corp.local/core/nginx:latest
--Pushing Image to Docker Registry - harbor.corp.local/core/nginx:latest
The push refers to repository [harbor.corp.local/core/nginx]
3e705ba0839f: Pushed
5f70bf18a086: Pushed
49be0dfa0abb: Pushed
8be6c633d7bd: Pushed
9bcabfbf5d99: Pushed
2c676bf83cf0: Pushed
e94712370c3c: Pushed
0a1c25e52ea1: Pushed
latest: digest: sha256:6e6135c439e04577f156349cf709a35fc5e350c08b89c24e813ebe53dc289d7e size: 3221
New Images uploaded to harbor.vballin.com are ['harbor.corp.local/core/nginx:latest']
Program Finished
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.