jramseye / docker-migrate Goto Github PK
View Code? Open in Web Editor NEWScript to migrate docker data
License: GNU General Public License v2.0
Script to migrate docker data
License: GNU General Public License v2.0
Currently can't import the volume data--I have not yet implemented how to unpack the tarred data.
If I type docker-migrate.py, I get following. I should instead get a help message with various options.
Traceback (most recent call last):
File "./docker-migrate.py", line 8, in
if sys.argv[1] == "export" :
IndexError: list index out of range
Those are inspired during i want to export and import those
images whose docker make build
uses. If some of them have
been covered or this is not a right place to talk about them, feel free
correct me. :)
1.Support specified images import
and export
(one or multiple specified images)
2.Provide an error recover method.
If an import
or export
returns error, records images info,
and then list them after the whole process finished.
#docker images
will hide the intermediate image by default (-a option is false), so use #docker images -a
would be better.
For how to generate intermediate image:
#docker pull fedora
#docker run fedora
--> assume the generated container named $TMP
#docker commit $TMP fedora
#docker images
will only show the new fedora, but
#docker images -a
will show the hidden <none>:<none>
which is the original "fedora" image
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate.sh export
d2a0ecffe6fa
ded7cd95e059
tar: Removing leading `/' from member names
/var/lib/docker/volumes/
Once a image CREATED
includes something like
About one hour ago
, it may brake if (i % 8 == 0):
Trying to save a : image by name and tag will fail.
For how to generate a : image
#docker pull fedora
#docker run fedora
#docker commit $created_above fedora
#docker images -a
I'm not sure if need open another issue, but if use "saving by id", we also need cover those images which have the same id, like
#docker tag fedora same_id
#docker images
then you will see fedora
and same_id
id are same
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.