The document introduces Docker, a container platform. It discusses how Docker addresses issues with deploying different PHP projects that have varying version requirements by allowing each project to run isolated in its own container with specified dependencies. It then covers key Docker concepts like images, containers, linking, exposing ports, volumes, and Dockerfiles. The document highlights advantages of Docker like enabling applications to run anywhere without compatibility issues and making deployment more efficient.
What is LXC?
•LinuX Containers
• Available since kernel 2.6.27
• Lightweight VM
• own process space
• own network interface
• SHARE kernel with host
• Run Linux within Linux
Docker Compose
• Defineand run multi-container applications
• Specify images and configuration in a simple YAML file:
docker-compose.yml
• One command to get all running: docker-compose up
Why Developers Care
Buildonce.. (finally) run anywhere*
• A clean, safe, hygienic, portable runtime environment for your app.
• No worries about missing dependencies, packages and other pain
points during subsequent deployments.
• Run each app in its own isolated container, so you can run various
versions of libraries and other dependencies for each app without
worrying.
• Automate testing, integration, packaging...anything you can script.
• Reduce/eliminate concerns about compatibility on different
platforms, either your own or your customers.
• Cheap, zero-penalty containers to deploy services. A VM without the
overhead of a VM. Instant replay and reset of image snapshots.
* "anywhere" means an x86 server running a modern Linux kernel
(3.2+ generally or 2.6.32+ for RHEL 6.5+, Fedora, & related)
59.
Why Administrators Care
Configureonce.. Run anything
• Make the entire lifecycle more efficient, consistent, and repeatable
• Increase the quality of code produced by developers.
• Eliminate inconsistencies between development, test, production,
and customer environments.
• Support segregation of duties.
• Significantly improves the speed and reliability of continuous
deployment and continuous integration systems.
• Because the containers are so lightweight, address significant
performance, costs, deployment, and portability issues normally
associated with VMs.
60.
Resource & Reference
•Docs.docker.com
• Docker Cookbook
• Docker in Practice
• Katacoda.com
#29 A Dockerfile is a text file with a series of commands in it
#50 A Dockerfile is a text file with a series of commands in it
#55 +Simplifying configuration: run any platform with it’s own config on top of your infrastructure.
+Code pipeline management: the code travel from developer’s machione to production, continueous intergration
+Developer productivity: we want it be as close as possible to production, and we want the development environment to be as fast as possible for interactive use
+
#56 +Simplifying configuration: run any platform with it’s own config on top of your infrastructure.
+Code pipeline management: the code travel from developer’s machione to production, continueous intergration
+Developer productivity: we want it be as close as possible to production, and we want the development environment to be as fast as possible for interactive use
+
#57 +Simplifying configuration: run any platform with it’s own config on top of your infrastructure.
+Code pipeline management: the code travel from developer’s machione to production, continueous intergration
+Developer productivity: we want it be as close as possible to production, and we want the development environment to be as fast as possible for interactive use
+
#58 +Simplifying configuration: run any platform with it’s own config on top of your infrastructure.
+Code pipeline management: the code travel from developer’s machione to production, continueous intergration
+Developer productivity: we want it be as close as possible to production, and we want the development environment to be as fast as possible for interactive use
+