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?

  • Use Docker DNS server on other nodes
  • Maven build with parameter somehow cache parameter in war?
  • How to override the CMD command in the docker run line
  • Dockerized MongoDB on Heroku?
  • Laravel installed on a local volume (Mac) from docker nginx/php-fpm can't write session files
  • coreos - get docker container name by PID
  • 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?

  • Docker container running tomcat - could not access the server using the host IP address
  • How to set docker run arguments on marathon spec
  • Failed to run AzureAD Module PowerShell commands inside windows container
  • Can I select which services to run with Atlassian's Localstack
  • How to do container rollbacks using a multi docker configuration on elasticbeanstalk
  • Integrate private files for open source application code in devops pipeline
  • 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.