GithubHelp home page GithubHelp logo

docker-migrate's People

Contributors

jramseye avatar

Watchers

 avatar  avatar

Forkers

rhvgoyal luwensu

docker-migrate's Issues

Import broken

Currently can't import the volume data--I have not yet implemented how to unpack the tarred data.

Display help and usage message

If I type docker-migrate.py, I get following. I should instead get a help message with various options.

./docker-migrate.py

Traceback (most recent call last):
File "./docker-migrate.py", line 8, in
if sys.argv[1] == "export" :
IndexError: list index out of range

RFE: Misc functions enhencement.

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.

Cover intermediate image

#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

Misc issues

  • README.md seems to explain atomic command while it should be talking about how to use docker-migrate.
  • I ran docker-migrate.sh without any option and it exited without any message on the console. Put an help message. Also do error handling if right arguments are not passed in.
  • I ran script with one subcommand "export" and it did something. But I have no idea where did it save images.

[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate.sh export
d2a0ecffe6fa
ded7cd95e059
tar: Removing leading `/' from member names
/var/lib/docker/volumes/

  • While images are being saved it would be nice to give more informative message like. "Saving image "
  • There seems to be this unnecessary warning about remving leading /.
    tar: Removing leading `/' from member names
    /var/lib/docker/volumes/

Handle <none>:<none> image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.