Official Dockerfile uses apt-get commands

I want to use Elasticsearch and Kibana in my project.For ease of deployment I would like to use docker containers.From reading some blogs I found that it is recommended to use 2 containers one for elasticsearch and another one for Kibana.

Is this the right approach?

  • Why is my npm dockerfile looping?
  • Compile docker on armv7
  • Docker “ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network”
  • Make docker container run forever while being able to gracefully stop
  • JHipster docker image from DockerHub is not working
  • Is it possible to access a hardware device with a docker image under Windows?
  • I downloaded the official elasticsearch Dockerfile from elsticsearch repository

    However the Dockerfile uses apt-get commands which work only on Ubuntu/Debian

    Do they have different official Docker files for differnt distributions?

  • Unable to load AWS credentials from any provider in the chain in Docker EC2 env
  • “java.net.NoRouteToHostException: No route to host” between two Docker Containers
  • dockerize a wpf application and use it
  • Docker development workflow
  • Basic elasticsearch tribe setup with docker
  • Tensorflow docker container predictions won't work outside of container
  • 2 Solutions collect form web for “Official Dockerfile uses apt-get commands”

    You don’t need separate Dockerfiles for separate distributions. The ElasticSearch image is built on top of the official Debian image, and so when you build it from the Dockerfile, apt-get will be run inside a Debian instance, regardless of what the rest of your computer is using.

    There are two questions from you.

    I found that it is recommended to use 2 containers one for elasticsearch and another one for Kibana. Is this the right approach?

    Yes, keep the container as simple as you can. Treat a container as a process. But I recommend not to build and base on more than 3 related images.

    However the Dockerfile uses apt-get commands which work only on Ubuntu/Debian. Do they have different official Docker files for differnt distributions?

    The open source community likes to distribute the image in Ubuntu, but from company level, may prefer RHEL/CentOS or other distributions. So you are fine to write your own Dockerfile easily, because the elsticsearch repository’s Dockerfile is plain text to you for reference.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.