O Docker é uma plataforma aberta para desenvolvedores construírem e distribuírem aplicações. Ele utiliza containers Linux para isolar ambientes virtuais e permite que aplicações sejam rapidamente implantadas sem diferenças entre ambientes. O Docker é composto pelo Docker Engine e pelo Docker Hub.
Apresentação Docker básico (história, comunidade, conceito, vm vs docker, comandos, dockerfile, docker compose, docker swarn, docker engine)
Para ver o slide em qualidade melhor, fazer o download
Virtualization, Containers, Docker and scalable container management servicesabhishek chawla
In this presentation we take you through the concept of virtualization which includes the different types of virtualizations, understanding the Docker as a software containerization platform like Docker's Architecture, Building and running custom images in Docker containers, Scalable container management services which include overview of Amazon ECS & kubernetes and how at LimeTray we harnessed the power of kubernetes for scalable automated deployment of our microservices.
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...Edureka!
This DevOps Docker Tutorial on what is docker ( Docker Tutorial Blog Series: https://goo.gl/32kupf ) will help you understand how to use Docker Hub, Docker Images, Docker Container & Docker Compose. This tutorial explains Docker's working Architecture and Docker Engine in detail. This Docker tutorial also includes a Hands-On session around Docker by the end of which you will learn to pull a centos Docker Image and spin your own Docker Container. You will also see how to launch multiple docker containers using Docker Compose. Finally, it will also tell you the role Docker plays in the DevOps life-cycle.
The Hands-On session is performed on an Ubuntu-64bit machine in which Docker is installed.
Docker 101 is a series of workshops that aims to help developers (or interested people) to get started with docker.
The workshop 101 is were the audience has the first contact with docker, from installation to manage multiple containers.
- Installing docker
- managing images (docker rmi, docker pull)
- basic commands (docker info, docker ps, docker images, docker run, docker commit, docker inspect, docker exec, docker diff, docker stop, docker start)
- Docker registry
- container life cycle (running, paused, stopped, restarted)
- Dockerfile
Apresentação Docker básico (história, comunidade, conceito, vm vs docker, comandos, dockerfile, docker compose, docker swarn, docker engine)
Para ver o slide em qualidade melhor, fazer o download
Virtualization, Containers, Docker and scalable container management servicesabhishek chawla
In this presentation we take you through the concept of virtualization which includes the different types of virtualizations, understanding the Docker as a software containerization platform like Docker's Architecture, Building and running custom images in Docker containers, Scalable container management services which include overview of Amazon ECS & kubernetes and how at LimeTray we harnessed the power of kubernetes for scalable automated deployment of our microservices.
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...Edureka!
This DevOps Docker Tutorial on what is docker ( Docker Tutorial Blog Series: https://goo.gl/32kupf ) will help you understand how to use Docker Hub, Docker Images, Docker Container & Docker Compose. This tutorial explains Docker's working Architecture and Docker Engine in detail. This Docker tutorial also includes a Hands-On session around Docker by the end of which you will learn to pull a centos Docker Image and spin your own Docker Container. You will also see how to launch multiple docker containers using Docker Compose. Finally, it will also tell you the role Docker plays in the DevOps life-cycle.
The Hands-On session is performed on an Ubuntu-64bit machine in which Docker is installed.
Docker 101 is a series of workshops that aims to help developers (or interested people) to get started with docker.
The workshop 101 is were the audience has the first contact with docker, from installation to manage multiple containers.
- Installing docker
- managing images (docker rmi, docker pull)
- basic commands (docker info, docker ps, docker images, docker run, docker commit, docker inspect, docker exec, docker diff, docker stop, docker start)
- Docker registry
- container life cycle (running, paused, stopped, restarted)
- Dockerfile
Docker has created enormous buzz in the last few years. Docker is a open-source software containerization platform. It provides an ability to package software into standardised units on Docker for software development. In this hands-on introductory session, I introduce the concept of containers, provide an overview of Docker, and take the participants through the steps for installing Docker. The main session involves using Docker CLI (Command Line Interface) - all the concepts such as images, managing containers, and getting useful work done is illustrated step-by-step by running commands.
Docker Compose is the last piece of the orchestration puzzle. After provisioning Docker daemons on any host in any location with Docker Machine and clustering them with Docker Swarm, users can employ Docker Compose to assemble multi-container distributed apps that run on top of these clusters.
The first step to employing Docker Compose is to use a simple YAML file to declaratively define the desired state of the multi-container app:
containers:
web:
build: .
command: python app.py
ports:
- "5000:5000"
volumes:
- .:/code
links:
- redis
environment:
- PYTHONUNBUFFERED=1
redis:
image: redis:latest
command: redis-server --appendonly yes
This example shows how Docker Compose takes advantage of existing containers. Specifically, in this simple two-container app declaration, the first container is a Python app built each time from the Dockerfile in the current directory. The second container is built from the redis Official Repo on the Docker Hub Registry. The links directive declares that the Python app container is dependent on the redis container.
Not that it’s defined, starting your app is as easy as …
% docker up
With this single command, the Python container is automatically built from its Dockerfile and the redis container is pulled from the Docker Hub Registry. Then, thanks to the links directive expressing the dependency between the Python and redis containers, the redis container is started *first*, followed by the Python container.
Docker Compose is still a work-in-progress and we want your help to design it. In particular, we want to know whether or not you think this should be a part of the Docker binary or a separate tool. Head over to the proposal on GitHub to try out an alpha build and have your say.
Coda
All this is just the briefest introduction to Docker Machine, Docker Swarm, and Docker Compose. We hope you’ll take a moment to try them out and give us feedback – these projects are moving quickly and we welcome your input!
We also wish to thank the many community members who have contributed their experience, feedback, and pull requests during the pre-Alpha iterations of these projects. It’s thanks to you that we were able to make so much progress so quickly, and in the right direction.
Distributed apps offer many benefits to users – portability, scalability, dynamic development-to-deployment acceleration – and we’re excited by the role the Docker platform, community, and ecosystem are playing in making these apps easier to build, ship, and run. We’ve got a ways to go, but we’re psyched by this start – join us and help us get there faster!
Learn, Collaborate & Dockerize. Docker is an open platform that helps you build, ship and run applications anytime and anywhere.
Join Docker Jaipur:
Docker Page: events.docker.com/jaipur
Telegram Group: t.me/dockerjaipur
Twitter: @JaipurDocker
Nesta apresentação faço uma abordagem prática sobre a tecnologia Docker e o seu uso, introduzo o usuário a visão geral de mercado de empresas que usam e fazem parte do ecossistema da tecnologia.
Trato desde o porque considerar usar a tecnologia até a implantação com sistemas distribuídos em cluster
Docker has created enormous buzz in the last few years. Docker is a open-source software containerization platform. It provides an ability to package software into standardised units on Docker for software development. In this hands-on introductory session, I introduce the concept of containers, provide an overview of Docker, and take the participants through the steps for installing Docker. The main session involves using Docker CLI (Command Line Interface) - all the concepts such as images, managing containers, and getting useful work done is illustrated step-by-step by running commands.
Docker Compose is the last piece of the orchestration puzzle. After provisioning Docker daemons on any host in any location with Docker Machine and clustering them with Docker Swarm, users can employ Docker Compose to assemble multi-container distributed apps that run on top of these clusters.
The first step to employing Docker Compose is to use a simple YAML file to declaratively define the desired state of the multi-container app:
containers:
web:
build: .
command: python app.py
ports:
- "5000:5000"
volumes:
- .:/code
links:
- redis
environment:
- PYTHONUNBUFFERED=1
redis:
image: redis:latest
command: redis-server --appendonly yes
This example shows how Docker Compose takes advantage of existing containers. Specifically, in this simple two-container app declaration, the first container is a Python app built each time from the Dockerfile in the current directory. The second container is built from the redis Official Repo on the Docker Hub Registry. The links directive declares that the Python app container is dependent on the redis container.
Not that it’s defined, starting your app is as easy as …
% docker up
With this single command, the Python container is automatically built from its Dockerfile and the redis container is pulled from the Docker Hub Registry. Then, thanks to the links directive expressing the dependency between the Python and redis containers, the redis container is started *first*, followed by the Python container.
Docker Compose is still a work-in-progress and we want your help to design it. In particular, we want to know whether or not you think this should be a part of the Docker binary or a separate tool. Head over to the proposal on GitHub to try out an alpha build and have your say.
Coda
All this is just the briefest introduction to Docker Machine, Docker Swarm, and Docker Compose. We hope you’ll take a moment to try them out and give us feedback – these projects are moving quickly and we welcome your input!
We also wish to thank the many community members who have contributed their experience, feedback, and pull requests during the pre-Alpha iterations of these projects. It’s thanks to you that we were able to make so much progress so quickly, and in the right direction.
Distributed apps offer many benefits to users – portability, scalability, dynamic development-to-deployment acceleration – and we’re excited by the role the Docker platform, community, and ecosystem are playing in making these apps easier to build, ship, and run. We’ve got a ways to go, but we’re psyched by this start – join us and help us get there faster!
Learn, Collaborate & Dockerize. Docker is an open platform that helps you build, ship and run applications anytime and anywhere.
Join Docker Jaipur:
Docker Page: events.docker.com/jaipur
Telegram Group: t.me/dockerjaipur
Twitter: @JaipurDocker
Nesta apresentação faço uma abordagem prática sobre a tecnologia Docker e o seu uso, introduzo o usuário a visão geral de mercado de empresas que usam e fazem parte do ecossistema da tecnologia.
Trato desde o porque considerar usar a tecnologia até a implantação com sistemas distribuídos em cluster
Usando Docker no desenvolvimento .NET - Exemplos da utilização de docker no desenvolvimento .NET com Visual Studio ou diretamente via linha de comando.
Apresentação Docker básico (história, comunidade, conceito, vm vs docker, comandos, dockerfile, docker compose, docker swarn, docker engine)
Para ver o slide em qualidade melhor, fazer o download
Slides da minha palestra sobre Docker. Nela faço uma breve introdução sobre a ferramenta, explico um pouco sobre o funcionamento e a diferenciação com máquinas virtuais.
Nesta apresentação sobre Docker foram abordados e aplicados importantes conceitos para a melhor forma de utilizar alguns recursos que a plataforma nos fornece.
Se você deseja conhecer um pouco sobre o docker e o que essa plataforma tem para nos oferecer, vale à pena conferir.
Transportando as aplicações entre vários ambientes com DockerAécio Pires
Nesta palestra aprenderemos o que é Docker, conteiner, imagens e quais as principais ferramentas do Docker usadas para implantar e transportar contêineres de aplicação entre vários tipos de ambientes.
2. O que é?
É uma plataforma
aberta para
desenvolvedores e
administradores
de sistemas para
construir, entregar
e rodar aplicações
distribuidas
3. O que é?
Docker não é uma ferramenta de virtualização de
máquinas, ele é um ambiente de virtualização de
Linux, construído sobre os LinuX Containers (LxC), que
utiliza a funcionalidade cgroups para criar e rodar
ambientes Linux virtuais isolados em um único host.
5. Composto:
Docker Hub,
um serviço em nuvem responsável pelo compartilhamento
de aplicações e automação de fluxos de trabalho.
(Imagens)
6. Dilema do Docker
O Docker permite que as aplicações sejam rapidamente
montadas e elimina o atrito e a diferença entre os
ambientes de desenvolvimento, testes e produção, ou seja,
sem essa de
“Na minha máquina funciona”
“Mas eu testei!!!”
“Estranho? Parou de funcionar do nada”!
“Será que vai dar problema se eu alterar isso?”
7. O que são Containers?
Nada mais é que um chroot. Nele é possível definir recursos
como memória, rede, sistema operacional, aplicação, serviço e
etc. Em um Container Docker é possível fazer testes,
desenvolvimentos, estudos, etc. Além disso, também é possível
utilizá-lo em um ambiente de produção.
8. Porque usar Containers?
Velocidade;
Boot em questão de segundos;
Economia de recursos;
Os processos rodando dentro de um container são vistos como
um processo no sistema Host;
É possível subir vários containers ao mesmo tempo, consumindo
o minimo de recursos do hardware físico ou virtual.
10. O que é uma imagem?
Uma imagem é um template para rodar um
container. Uma imagem é dividida em várias
camadas de acordo com a execução de
comandos durante seu build.
Essas imagens podem ficar armazenadas no
DockerHub, que é repositório público e privado
que disponibiliza diversos recursos como
sistema de autenticação, build de imagens
automático, entre outros.
11. Mas as imagens do DockerHub são
confiáveis?
Caso não confie em uma imagem baixada do
DockerHub, basta executar o comando "docker
inspect (nome da imagem)" para listar todas as
informações contidas naquela imagem.
12. E as camadas?
Para visualizar as camadas, utilizamos o comando "docker history (nome da imagem)"
Saída do comando:
IMAGE CREATED CREATED BY SIZE COMMENT
9f587567bce1 33 hours ago /bin/sh -c #(nop) ENTRYPOINT ["/usr/sbin/htt 0 B
240465ca487d 33 hours ago /bin/sh -c #(nop) EXPOSE 80/tcp 0 B
94643bf2f8a9 33 hours ago /bin/sh -c #(nop) LABEL Description=Apache S 0 B
4687cdc38101 34 hours ago /bin/sh -c yum update -y && yum install httpd 98.19 MB
dd1c6ab5681f 34 hours ago /bin/sh -c #(nop) MAINTAINER Matheus Alves e 0 B
cf2c3ece5e41 12 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B
<missing> 12 weeks ago /bin/sh -c #(nop) LABEL name=CentOS Base Imag 0 B
<missing> 12 weeks ago /bin/sh -c #(nop) ADD file:f0ec297ab653ffb2c5 194.6 MB
<missing> 12 weeks ago /bin/sh -c #(nop) MAINTAINER https://github.c 0 B
13. O que é um Dockerfile
O Dockerfile é um arquivo onde são determinados todos os
detalhes de uma imagem. Nele são especificados a imagem
que vai ser utilizada, aplicativos que serão instalados, comandos
a serem executados, etc. Ele se assemelha ao makefile utilizado
para compilação de programas em C, por exemplo, mas para criação
de imagens.
14. Exemplo de Dockerfile
FROM centos:6
MAINTAINER Matheus Alves emmanoelcoelholima@gmail.com
RUN yum update -y && yum install httpd -y && yum clean all
ENV NO_PROXY="localhost"
LABEL Description="Apache Server"
VOLUME /var/www/html/
EXPOSE 80
ENTRYPOINT ["/usr/sbin/httpd","-D","FOREGROUND"]
15. Comandos Utilizados
FROM => Indica a imagem que vai ser utilizada como base.
MAINTAINER => Autor da imagem.
RUN => Executa comandos durante a criação da imagem.
ENV => Define variáveis de ambiente.
LABEL => Adiciona metadados à imagem.
VOLUME => Define um volume a ser montado no container.
EXPOSE => Informa portas nas quais o container vai ficar ouvindo.
ENTRYPOINT => Permite rodar um executável. O container será
finalizado após o término da execução do mesmo.
16. Outros Comandos
ADD => Copia arquivos, diretórios, arquivos TAR ou outros arquivos
remotos e os adicionam ao filesystem do container.
CMD => Executa um comando no inicio da execução do container.
COPY => Copia novos arquivos e diretórios e os adicionam ao
filesystem do container.
USER => Determina qual o usuário será utilizado na imagem.
WORKDIR => Altera o diretorio / para o especificado.
17. Executando o build do Dockerfile
Para executar o build de um Dockerfile como esse do exemplo,
basta usar o comando "docker build -t apache:1.0 .", caso esteja no
mesmo diretório do Dockerfile, ou substituir o ponto pelo caminho do
diretório em que o Dockerfile se localiza. Após a execução do build
estará disponível uma imagem com a tag especificada para a utilização
em novos containers.
25. Exemplo prático
1 - Baixar um container Ubuntu
2 - Instalar um servidor Web (Nginx)
3 - Salvar este container com o servidor instalado
4 - Iniciar um novo container a partir dessa imagem
5 - Acessar uma página web deste serviço.