{ "info": { "author": "Bryan Thornbury", "author_email": "author@example.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools", "Topic :: Utilities" ], "description": "docker-save-last Command Line Utility\n======================================\n\nThis is a command line utility effectively replicating `docker save` except that it will only save the LAST layer of the image in the output archive.\n\nThis is especially useful when combined with the experimental `docker build --squash` option, because it allows you to export only your changes on top of the base image without the entire base image file system in the output archive.\n\nThis means HUGE savings in file size.\n\nGeneral discussion on the issue can be found here:\nhttps://github.com/moby/moby/issues/8039\n\n\n## Installation\n\nUse pip to install:\n`pip install d-save-last`\n\n## Required Dependencies\n\n1. `docker` installed, on the PATH, and usable without sudo.\n\n## Usage\nTypical usage will look like `d-save-last -o ./path/to/output.tar YOUR_IMAGE_ID`\n\nArguments and options are identical to `docker save` see `docker save --help`.\n\n```\n$ docker save -h\n\nUsage:\tdocker save [OPTIONS] IMAGE [IMAGE...]\n\nSave one or more images to a tar archive (streamed to STDOUT by default)\n\nOptions:\n -o, --output string Write to a file, instead of STDOUT\n```\n\n## How does it work?\n\nThis utility uses the special docker-in-docker image from https://github.com/brthor/dind-save \n\nThat docker image contains a version of the docker daemon with patches to docker save built from https://github.com/brthor/engine\n\nThe utility launches the `dind-save` image in a container, and connects to its docker daemon over TCP.\n\n## Caveats\n\n- This is currently only tested with host machines that use the overlay2 storage driver. Any other storage driver will almost certainly not work. \n\n- Currently only supports docker version 18.09. Adding new versions requires changes in the docker daemon and `dind-save` image repository. Open an issue if you'd like a new version added for your purposes.\n\nFeel free to contribute here if any of these are an issue and you'd like to use this utility. Pull Requests will be reviewed quickly.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brthor/docker-save-last-layer", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "d-save-last", "package_url": "https://pypi.org/project/d-save-last/", "platform": "", "project_url": "https://pypi.org/project/d-save-last/", "project_urls": { "Homepage": "https://github.com/brthor/docker-save-last-layer" }, "release_url": "https://pypi.org/project/d-save-last/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "A command line utility effectively replicating `docker save` except that it will only save the LAST layer of the image in the output archive.", "version": "0.1.2" }, "last_serial": 5101780, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "89bd9aae641b4c5f030ee9d58b03ce06", "sha256": "d82797d9d7a6406303c7056412e5328420c3624db6f2853e023f0d33315ddc23" }, "downloads": -1, "filename": "d_save_last-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "89bd9aae641b4c5f030ee9d58b03ce06", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6004, "upload_time": "2019-04-05T01:32:37", "url": "https://files.pythonhosted.org/packages/89/c9/9ea37fec070f1a7522d661d4938e8d9809aa01c145940cfd38e0b5cf2798/d_save_last-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7598ca69c185ca330c804cbb89cc8c78", "sha256": "230272e1a87f17b0e7496f236c00fd06d0a6d9639e294229dacd8f8a2e6c738c" }, "downloads": -1, "filename": "d-save-last-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7598ca69c185ca330c804cbb89cc8c78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3959, "upload_time": "2019-04-05T01:32:39", "url": "https://files.pythonhosted.org/packages/83/71/bb40703d19121085e14364a223f4dc4a3533f17463b50057d5283ef5b54a/d-save-last-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "53e3af71a01c4fea525adae6ed56e4d4", "sha256": "a4352c06e6c2c87e524e67b20b19b3ad8b828dc987e1082e0153f8380b7c37ad" }, "downloads": -1, "filename": "d_save_last-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "53e3af71a01c4fea525adae6ed56e4d4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6006, "upload_time": "2019-04-05T01:37:22", "url": "https://files.pythonhosted.org/packages/55/a4/0b70ca988343bf899b0dcceddb6919a2452994d9f74a334638c629517a43/d_save_last-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e26afd19bbb6998043cfcbae2e66a357", "sha256": "ee6fdf55b8f6615c803c95d3b724363a4e8cea20f40cc651510e97b1559dd60c" }, "downloads": -1, "filename": "d-save-last-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e26afd19bbb6998043cfcbae2e66a357", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3964, "upload_time": "2019-04-05T01:37:24", "url": "https://files.pythonhosted.org/packages/4e/8e/053003b25bfbea74c8f49322c8b7d1dceaafd918a1c88525cce917202853/d-save-last-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53e3af71a01c4fea525adae6ed56e4d4", "sha256": "a4352c06e6c2c87e524e67b20b19b3ad8b828dc987e1082e0153f8380b7c37ad" }, "downloads": -1, "filename": "d_save_last-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "53e3af71a01c4fea525adae6ed56e4d4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6006, "upload_time": "2019-04-05T01:37:22", "url": "https://files.pythonhosted.org/packages/55/a4/0b70ca988343bf899b0dcceddb6919a2452994d9f74a334638c629517a43/d_save_last-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e26afd19bbb6998043cfcbae2e66a357", "sha256": "ee6fdf55b8f6615c803c95d3b724363a4e8cea20f40cc651510e97b1559dd60c" }, "downloads": -1, "filename": "d-save-last-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e26afd19bbb6998043cfcbae2e66a357", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3964, "upload_time": "2019-04-05T01:37:24", "url": "https://files.pythonhosted.org/packages/4e/8e/053003b25bfbea74c8f49322c8b7d1dceaafd918a1c88525cce917202853/d-save-last-0.1.2.tar.gz" } ] }