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?

  • Docker: Cargo.toml not found
  • Docker: Error processing tar file(exit status 1): Error setting up pivot dir: not a directory
  • Run HBase inside docker container
  • Dockerfile can't find my private ssh key
  • can a dockerised app execute script on the host?
  • Jupyter: XSRF cookie does not match POST
  • 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?

  • Arch linux [Armv7] docker install
  • Continuous delivery for Docker deployment with image already built
  • Odoo development on Docker
  • docker machine: getsockopt no route to host
  • building jenkins docker image from official Dockerfile
  • Problems deploying Keycloak in HA using Postgres in Docker
  • 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.