0

I am trying to integrate three things into one docker image.

The first image is: https://github.com/opencv/gst-video-analytics

The second image is: https://github.com/domoritz/streamlit-docker

The third image is: http://blog.feabhas.com/2020/02/running-the-eclipse-mosquitto-mqtt-broker-in-a-docker-container/

Can someone guide me on how can I integrate these three images into one on docker in Windows 10?

Operating system: Windows 10 

Docker version 19.03.1
hardillb
  • 54,545
  • 11
  • 67
  • 105
shraddha maurya
  • 111
  • 1
  • 7
  • See _e.g._ [Docker: Combine multiple images](https://stackoverflow.com/questions/27214757/docker-combine-multiple-images) or [Is there a way to combine Docker images into 1 container?](https://stackoverflow.com/questions/39626579/is-there-a-way-to-combine-docker-images-into-1-container). There's no way to programatically merge multiple images into one. – David Maze Jul 17 '20 at 10:38

1 Answers1

1

I did something similar with docker-combos. You basically just include all the lines from all three Dockerfile files, but only one FROM line. Then start correcting errors as they come up. You may have a bunch of errors because the FROM lines aren't the same (one is Ubuntu, one is Alpine so you have to change apk add to apt-get install).

You can also consider not using a single Docker container for all these and go with docker-compose. It lets you bring up multiple containers all together and link their network for easy access.

kichik
  • 33,220
  • 7
  • 94
  • 114