What is docker?
Docker provides a virtualization environment to run containers. In more practical terms it means we can define docker images that run on top of the OS virtualization to provide services. A container is in principle the instance of the image.

Docker Terminology Definitions
Docker image
A docker image is a set of services defined to run on top of the Virtual Host OS.
Dockerfile
- # define the base image to pull
- FROM docker.elastic.co/elasticsearch/elasticsearch:7.10.2
- # make port 9200 and 9300 available to the world outside this container
- EXPOSE 9200
- EXPOSE 9300
- # build the image file
- $ docker build ./my_elastic_image --tag=mbister/elastic_cust
- # run the custom image file
- $ docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" mbister/elastic_cust
- FROM ubuntu:latest
- # Update the image to the latest packages
- RUN apt-get update && apt-get upgrade -y
Docker compose
Susan MurrayPosted Apr 1, 2021, 2:59 PM
This was cool! thanks