0

I have learned that docker images cannot be merged. But why not? It would be very useful.

Tom Ellis
  • 9,224
  • 1
  • 29
  • 54

1 Answers1

0

Docker is an app container and you should be running one process per container. So, it makes sense to split images into specific roles. For example, container image for nginx, container image for mongo etc. Having said that you can bake multiple images content into one but that is like constructing a whole OS container which doesn't seem to align with docker app containers philosophy.

Qasim Sarfraz
  • 5,822
  • 2
  • 20
  • 26
  • But in many cases one process requires multiple images, for example if I want to combine the OpenFace with TensorFlow I need both the bamos/openface and nvidia/cuda containers. – Tom Ellis Jun 27 '17 at 16:09
  • I feel merging will be interesting/complex to implement given base image for the two images can differ. Also, what sort of dependencies these two components have? if one of them is a helper for proess/service I will just install it rather than thinking about merging docker images. – Qasim Sarfraz Jun 27 '17 at 16:39