undocker | Unpacks a Docker image | Continuous Deployment library
kandi X-RAY | undocker Summary
kandi X-RAY | undocker Summary
Unpacks a Docker image.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point .
- Parse command line arguments .
- Finds all layers in a given image .
- Parse image spec .
undocker Key Features
undocker Examples and Code Snippets
Community Discussions
Trending Discussions on undocker
QUESTION
I have a big docker image I need to copy to a remote machine. I build the image on my local machine with an unchanging base image, so only the last few layers change. I would like to have that base image on the remote machine and only copy the changed top layers to the remote machine whenever they change. I cannot build the image on the remote using its dockerfile because the necessary source files are not present on the remote.
I can separate the image into its layers using undocker, but how do I reassemble the image from its layers on the remote machine?
...ANSWER
Answered 2018-Nov-29 at 06:00I have switched to using a Docker registry, and updating my image with docker pull
, which I think is the proper way to solve this problem, since it will only download the changed layers.
This article also helped me reduce the size of my images.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install undocker
You can use undocker like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page