Introduction
* Rondineli Gomes
Docker is a program that virtualizes in a level of operating-system, it is also known as a containers. It was released in 2013 by Docker Inc. Mainly used to run and delivery packages in "containers".
In summary it has been the most devops tool to create agile, hybrid and or microservices infrastructure
Difference between Containers and Virtual machines?
Difference between Containers and Virtual machines
Under the hood
Docker Compose is basically a docker tool that allows you to create easily integration between containers, allows create hybrid networks and allows each app connect with each other trough a private network and or with the host OS.
Extra: What's docker-compose?
DockerFile
Image
Container
DockerHub
Registry
DockerFile
FROM alpine:latest
MAINTAINER Rondineli Gomes <rondineli.gomes.araujo@gmail.com>
ADD . /app
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then \
ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then \
ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN apk add --no-cache curl git vim && pip3 install flask
ENV FLASK_APP=/app/app.py
EXPOSE 5001
CMD ["flask", "run", "-h", "0.0.0.0", "-p", "5001"]FROM
MAINTAINER
RUN
CMD
ENV
EXPOSE
ADD
COPY
Solid state of the image. During the build it will run every step defined on Dockerfile and then store it as a layer that will be used afterwards.
DockerFile
Image
DockerHub
Registry
DockerFile
Image
Repository that can saved the images and created versions of the build at every change made on the code or on the image itself.
It can be private, or public in dockerhub: https://hub.docker.com/
DockerFile
Image
Container
DockerHub
Registry
Container is the final result of the image. It can be downloaded by any hub or by local image.
https://github.com/Rondineli/eks-terraform-lab
https://www.youtube.com/user/linuxtipscanal
QUESTIONS????