dockerimages / docker-tools

Collection of useful docker-tools install able via docker run
Apache License 2.0
33 stars 7 forks source link

Add docker clone script #2

Closed alreece45 closed 10 years ago

alreece45 commented 10 years ago

This is a very rough script to "clone" a container. It allows customizing the cloned container to change, edit, or remove options. This probably needs some more cleanup and testing before being merged.

The logic was a bit too complicated to fit in a bash script. Because of the way the argparse module works, the (-a, -i, -t, privileged) may be parsed differently than docker would. (It doesn't imply a value if they are the last argument before a positoinal argument)