![]() ![]() You can not even build a Dockerfile like: FROM image1 So, is there any tool that one can use to act like: docker merge image1 image2 merged_image ? No! I was searching for something to do the following: image1 -Īlthough this issue was closed before in two different threads ( 1, 2), it arises in some scenarios when you want to do something like that!. I spent some time searching for a tool to use it to merge (or flatten) two different Docker images that I don’t have their Dockerfiles. However, if you spend most of the time using ready images from Docker Hub, you do not have their source Dockerfile. Simply, organize them in one file and build it! This is easily done as long as you have the Dockerfile of each image. In other few cases, you may want one Docker image to contain dependencies from two different Docker images. ![]() In some cases, you may want to have one container do two different jobs. And the best building block of your distributed application is to use official images from Docker Hub. When working with Docker, it is a good practice to search for some ready-to-use images on Docker Hub before building you own. It is very powerful to have your software architecture distributed in a set of containers, each one does one job. ![]() It’s always said, “ Do not try to re-invent the wheel!” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |