Presentation is loading. Please wait.

Presentation is loading. Please wait.

Docker – kontejnerizacija na serveru Vedran Vučetić, SPAN

Similar presentations


Presentation on theme: "Docker – kontejnerizacija na serveru Vedran Vučetić, SPAN"— Presentation transcript:

1 Docker – kontejnerizacija na serveru Vedran Vučetić, SPAN

2

3 Virtualization is the key cloud computing feature.

4

5

6 Virtualne masine su velike, GBs
- Docker containers je samo aplikacija i dependencies

7 Docker basics Platform for developers and sysadmins Docker Engine
Docker Hub images Apache licence Usteda na licencama Lakse raditi scaleup and down Radi na puno platformi – desktop, fizicki serveri, VMs

8 Architecture

9 Docker images Osnova containera sudo docker images Image tags ubuntu:14.04 sudo docker pull ubuntu

10 Own process Own network interface Share kernel with host

11 Platform basic components
Docker images Docker registries Docker containers Docker images A Docker image is a read-only template. For example, an image could contain an Ubuntu operating system with Apache and your web application installed. Images are used to create Docker containers. Docker provides a simple way to build new images or update existing images, or you can download Docker images that other people have already created. Docker images are the build component of Docker. Docker Registries Docker registries hold images. These are public or private stores from which you upload or download images. The public Docker registry is called Docker Hub. It provides a huge collection of existing images for your use. These can be images you create yourself or you can use images that others have previously created. Docker registries are the distribution component of Docker. Docker containers Docker containers are similar to a directory. A Docker container holds everything that is needed for an application to run. Each container is created from a Docker image. Docker containers can be run, started, stopped, moved, and deleted. Each container is an isolated and secure application platform. Docker containers are the run component of Docker.

12 HELLO WORLD DEMO sudo docker run ubuntu /bin/echo 'Hello world'

13

14

15 DEMO: Neo4j

16 Stvaranje slike Iz Dockerfile # This is a comment FROM ubuntu:14.04
MAINTAINER Kate Smith RUN apt-get update && apt-get install -y ruby ruby-dev RUN gem install sinatra

17 sudo docker build -t ouruser/sinatra:v2 .

18 DEMO: ASP.NET IN DOCKER CONTAINER

19 Tehnical Details run everywhere Regardless of kernel version (2.3.32+)
Regardless of host distro On premise, on cloud, virtual or not Container and host architecture must match If it can run on host, it can run in container

20 Best practices Portability Keep images small One process per container

21 Instalacija Boot2Docker Docker Machine

22

23 DOCKER MACHINE

24 Docker Machine Docker host manager Create Stop Restart

25 DOCKER SWARM

26 Docker Swarm Native clustering for Docker

27 Docker Compose Tool for defining complex applications with Docker
Multi-container apps in single file Start, stop, restart

28 web: build: . command: python app.py ports: - "5000:5000" volumes: - .:/code links: - redis redis: image: redis

29 Use cases CI (Ebay) Radi na mojem stroju, radi na nasem stroju, radi na produkciji

30 CI (Ebay) CD Distributed Application Compositions (New Relic)

31 Synology NAS. Raspberry PI

32 Future Hyper-V Containers Nano Server

33 Summary Build one, run everywhere Missing dependencies Machine state
Application isolation Automate testing, integrating, packaging Platform compatibility VM overhead

34

35 What scenarios do you see people utilizing containerization for?

36 Can you use Docker containers on Windows?

37 Vm vs docker container?

38 How does security differ between virtualization and containerization?

39 How does App-V relate to containerization?

40

41

42


Download ppt "Docker – kontejnerizacija na serveru Vedran Vučetić, SPAN"

Similar presentations


Ads by Google