SlideShare a Scribd company logo
WordPress with Docker
Workshop
Devarshi Sathiya Imran Sayed
What do I need to know to learn Docker?
● At Least know to use the command line usage and tools
What is Docker?
● Docker is an open-source software
platform for building container based
applications ( started in 2013 )
● It carves up a computer into sealed
containers that run your code.
● Containers are small and lightweight
execution environments that make
shared use of the operating system
kernel but otherwise run in isolation
from one another
Docker in a nutshell
Computer
You Interact with a client-program
name docker cli
Docker needs a Linux server to manage - so we run linux serve in a virtual machine
Server-program - docker host
Interact with a
server-program
name docker host Linux Virtual Machine
Docker Desktop
For Mac For Windows
Docker build
Docker pull
More about Docker
● Docker is a client-program that you
run from the terminal
● Docker is also a server program that
manages the linux system
● Its a program that takes your code
bundles it up and seals into a
container.
● Docker is also a service that
distributes containers so people can
share their work.
Why Docker?
● Developing apps today can require multiple languages,
frameworks, architectures.
● Docker simplifies and accelerates your workflow.
● It gives developers the freedom to innovate with their choice
of tools, application stacks, and deployment environments for
each project
Why Docker?
● Simplicity - Docker’s friendly, CLI-based workflow makes
building, sharing, and running containerized applications
accessible to developers of all skill levels.
● Agile - Install from a single package to get up and
running in minutes. Code and test locally while ensuring
consistency between development and production.
● Collaborate -Use Certified and community-provided
images in your project. Push to a cloud-based
application registry and collaborate with team members.
Docker today
Docker Containers Are Everywhere:
Linux, Windows, Data center, Cloud, Serverless, etc.
Docker Vs Virtual Machines
Docker Flow
Image
A file that makes up just enough
OS that you need
Running
Container
A container is an image that has
process running in it
Docker run
Stopped
Container
A container that has the process
stopped running.
New Image
Docker commit
New image created
from the exited container
Creates a new container
Docker
kill
What is Docker Container?
● A self-contained sealed unit of
software
● Contains everything needed to run the
service.
● It bundles together all the code,
config, processes, networking,
dependencies and just enough
operating system to run your code.
Docker installation
Install Docker
● Docker Desktop - on Mac and Windows
● Docker on Ubuntu
Creating a container
What is docker
compose?
docker run -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=wordpress --name
wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest
Setting up WordPress
with Docker
version: '3.3'
services:
composer:
image: composer
command: update
volumes:
- ./wordpress:/app
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
- ./mysql:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8183:80
wordpress:
depends_on:
- mysql
- composer
image: wordpress:latest
ports:
- "8020:80"
restart: always
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
Demo
● Deploy on local
● Show WordPress on :8020
● Show phpMyAdmin
References
● https://techio.dev/docker/docker-for-kids.html
● https://techio.dev/docker/docker-networks-and-volumes.html
● https://www.docker.com/blog/containers-replacing-virtual-
machines/

More Related Content

What's hot (20)

PDF
Getting started with docker
JEMLI Fathi
 
PDF
Containerise everything - Why you should stop installing development environm...
Daniel Demmel
 
PDF
We Need to Talk: How Communication Helps Code
Docker, Inc.
 
PDF
Introduction to Docker
James Turnbull
 
PDF
Docker 101
Lâm Đào
 
PPTX
Introduction to Docker
Pubudu Jayawardana
 
PPTX
Building microservices with docker
Roman Melnyk
 
PDF
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
PPTX
What's New in Docker 19.03.0 Pre-Release?
Ajeet Singh Raina
 
PDF
Introduction to Docker
Adam Štipák
 
PPTX
20170321 docker with Visual Studio 2017
Takayoshi Tanaka
 
PPTX
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
 
PPTX
How to Dockerize Angular, Vue and React Web Apps
Belatrix Software
 
PDF
My Journey to Becoming a Docker Captain
Ajeet Singh Raina
 
PDF
Orchestration of docker containers at scale
Yeshwanth Kumar
 
PDF
Docker Non Technical Presentation
Jérôme Petazzoni
 
PDF
Dockercon 2018 EU Updates
Ajeet Singh Raina
 
PDF
Introduction to Docker - Vellore Institute of Technology
Ajeet Singh Raina
 
PPTX
8 good reasons to learn docker
prabhasathya
 
PPTX
Docker 101 - High level introduction to docker
Dr Ganesh Iyer
 
Getting started with docker
JEMLI Fathi
 
Containerise everything - Why you should stop installing development environm...
Daniel Demmel
 
We Need to Talk: How Communication Helps Code
Docker, Inc.
 
Introduction to Docker
James Turnbull
 
Docker 101
Lâm Đào
 
Introduction to Docker
Pubudu Jayawardana
 
Building microservices with docker
Roman Melnyk
 
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
What's New in Docker 19.03.0 Pre-Release?
Ajeet Singh Raina
 
Introduction to Docker
Adam Štipák
 
20170321 docker with Visual Studio 2017
Takayoshi Tanaka
 
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
 
How to Dockerize Angular, Vue and React Web Apps
Belatrix Software
 
My Journey to Becoming a Docker Captain
Ajeet Singh Raina
 
Orchestration of docker containers at scale
Yeshwanth Kumar
 
Docker Non Technical Presentation
Jérôme Petazzoni
 
Dockercon 2018 EU Updates
Ajeet Singh Raina
 
Introduction to Docker - Vellore Institute of Technology
Ajeet Singh Raina
 
8 good reasons to learn docker
prabhasathya
 
Docker 101 - High level introduction to docker
Dr Ganesh Iyer
 

Similar to Docker with WordPress (20)

PPTX
Introduction to Docker
Alan Forbes
 
PDF
Docker Up and Running for Web Developers
Amr Fawzy
 
PDF
Docker up and Running For Web Developers
BADR
 
PPTX
Docker intro
NoelMc Grath
 
PDF
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
PDF
Containers and Docker
Amin Afshar
 
PDF
Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application
Priyanka855141
 
PPT
Docker introduction
Phuc Nguyen
 
PDF
Docker
Neeraj Wadhwa
 
PDF
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
PPTX
Intro Docker october 2013
dotCloud
 
PDF
Docker for developers
Anvay Patil
 
PDF
Docker get started
Truong LD
 
PPTX
Abc of docker
shohan_slideshare
 
PPTX
Docker
Charlie Cai
 
PPTX
Docker.pptx
balaji257
 
PPTX
Unit No. III Docker ppt part 2.pptx Cloud Microservices & Application
Priyanka855141
 
PDF
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
PDF
Faster and Easier Software Development using Docker Platform
msyukor
 
PDF
Docker 101
Hung-Che Lo
 
Introduction to Docker
Alan Forbes
 
Docker Up and Running for Web Developers
Amr Fawzy
 
Docker up and Running For Web Developers
BADR
 
Docker intro
NoelMc Grath
 
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
Containers and Docker
Amin Afshar
 
Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application
Priyanka855141
 
Docker introduction
Phuc Nguyen
 
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
Intro Docker october 2013
dotCloud
 
Docker for developers
Anvay Patil
 
Docker get started
Truong LD
 
Abc of docker
shohan_slideshare
 
Docker
Charlie Cai
 
Docker.pptx
balaji257
 
Unit No. III Docker ppt part 2.pptx Cloud Microservices & Application
Priyanka855141
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
Faster and Easier Software Development using Docker Platform
msyukor
 
Docker 101
Hung-Che Lo
 
Ad

More from Imran Sayed (20)

PPTX
Why Progressive Web Apps For WordPress - WordCamp Finland
Imran Sayed
 
PPTX
Custom gutenberg block development in react
Imran Sayed
 
PPTX
Fastest Way of Creating Gutenberg Blocks - WordCamp Rochester
Imran Sayed
 
PPTX
Harness The Power Of ACF For Gatsby and WordPress
Imran Sayed
 
PPTX
Improving Your Debugging Skills In WordPress
Imran Sayed
 
PPTX
Build Modern Web Applications with React and WordPress
Imran Sayed
 
PPTX
Why progressive apps for WordPress - WordSesh 2020
Imran Sayed
 
PPTX
Digging Into Gutenberg
Imran Sayed
 
PPTX
Fastest Way Of Creating Gutenberg Blocks With Minimal JavaScript Knowledge ...
Imran Sayed
 
PDF
Why progressive web apps for word press wc-ahemdabad
Imran Sayed
 
PPTX
Build fast word press site in react in 30 mins with frontity
Imran Sayed
 
PPTX
Build Fast WordPress Site With Gatsby
Imran Sayed
 
PPTX
Why Progressive Apps For WordPress?
Imran Sayed
 
PPTX
Creating Gutenberg Blocks With ACF
Imran Sayed
 
PPTX
Custom gutenberg block development with React
Imran Sayed
 
PPTX
SSR with React - Connecting Next.js with WordPress
Imran Sayed
 
PDF
React with WordPress : Headless CMS
Imran Sayed
 
PPTX
React Workshop: Core concepts of react
Imran Sayed
 
PPTX
Redux workshop
Imran Sayed
 
PPTX
React workshop
Imran Sayed
 
Why Progressive Web Apps For WordPress - WordCamp Finland
Imran Sayed
 
Custom gutenberg block development in react
Imran Sayed
 
Fastest Way of Creating Gutenberg Blocks - WordCamp Rochester
Imran Sayed
 
Harness The Power Of ACF For Gatsby and WordPress
Imran Sayed
 
Improving Your Debugging Skills In WordPress
Imran Sayed
 
Build Modern Web Applications with React and WordPress
Imran Sayed
 
Why progressive apps for WordPress - WordSesh 2020
Imran Sayed
 
Digging Into Gutenberg
Imran Sayed
 
Fastest Way Of Creating Gutenberg Blocks With Minimal JavaScript Knowledge ...
Imran Sayed
 
Why progressive web apps for word press wc-ahemdabad
Imran Sayed
 
Build fast word press site in react in 30 mins with frontity
Imran Sayed
 
Build Fast WordPress Site With Gatsby
Imran Sayed
 
Why Progressive Apps For WordPress?
Imran Sayed
 
Creating Gutenberg Blocks With ACF
Imran Sayed
 
Custom gutenberg block development with React
Imran Sayed
 
SSR with React - Connecting Next.js with WordPress
Imran Sayed
 
React with WordPress : Headless CMS
Imran Sayed
 
React Workshop: Core concepts of react
Imran Sayed
 
Redux workshop
Imran Sayed
 
React workshop
Imran Sayed
 
Ad

Recently uploaded (20)

PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Tally software_Introduction_Presentation
AditiBansal54083
 

Docker with WordPress

Editor's Notes

  • #10: Containers and virtual machines have similar resource isolation and allocation benefits, but function differently because containers virtualize the operating system instead of hardware. Containers are more portable and efficient. VM runs their own OS while container share the Kernel of the host system. As a VM is running a full OS, it will need more resources in terms of hardware and the boot time will be slower than a docker container. As you can see in the picture, the Docker is running directly on the host operating system and the container of our APP is directly running on Docker container. But in case of VM, there's a full Operating System running on the top of the hypervisor. And as mentioned before a Operating System is more resource hungry.