SlideShare a Scribd company logo
Docker
First linux container hands on
2020-11-11
Orozco Hsu
Agenda
• Docker engine
• Containers & images
• Image registries and Docker Hub
• Container isolation
Play With Docker (PWD)
• Sign-Up an account and use PWD
• https://labs.play-with-docker.com/
Use Chrome browser
1 docker first_linux_container_hands_on
Docker engine
• Running your first container => Run docker run hello-world
Docker engine
Docker engine
Containers & images
• Docker Images
• Run =>
• The pull command fetches the alpine image from the Docker registry and
saves it in our system. In this case the registry is Docker Hub
• You can change the registry, but that’s a different lab
docker pull alpine
Alpine is a lightweight Linux distribution so it is quick to pull down and run, making it
a popular starting point for many other images
Containers & images
• Docker Images
• RUN => docker images
Containers & images
• Docker containers
• RUN => docker run alpine ls -l or docker run alpine ls | wc -l
Containers & images
• Docker run
Containers & images
• Docker run
• RUN =>
• RUN =>
• RUN =>
• RUN =>
docker run alpine echo "hello from alpine"
docker run alpine /bin/sh
docker run -it alpine /bin/sh
Ctl + P + Q
Containers & images
• Docker run
• RUN => docker ps -a
Containers & images
• Docker stop
• RUN =>
• Docker start
• RUN =>
docker stop XXXXX
docker start XXXXX
Container isolation
• Docker exec
• RUN =>
• RUN =>
docker exec -it XXXXX /bin/sh
docker rm -f `docker ps -a -q`
Image registries and Docker Hub
• Docker commit
• RUN =>
• Docker push
• RUN =>
• RUN =>
• RUN =>
docker commit XXXXX orozcohsu/test
docker push orozcohsu/test
Enter your account and password of dockerhub
docker login
docker logout
Image registries and Docker Hub
• Dockerhub
• https://hub.docker.com/
Container isolation
• Docker isolation
Prepare it for next-week
Create your first docker environment
• Install VMware Workstation 15 Pro in your laptop
• https://mega.nz/file/zHxlyASC#47BjSzA8iR26nUT4g4YVVWTw0eo-
qchQzPygLI4sE4U
• Install CentOS7 (CentOS-7-x86_64-DVD-2003.iso)
• http://ftp.ksu.edu.tw/FTP/CentOS/7/isos/x86_64/CentOS-7-x86_64-DVD-
2003.iso
• Install Putty
• https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

More Related Content

What's hot (20)

PDF
Docker 101 - Intro to Docker
Adrian Otto
 
PDF
Continuous integration with Docker and Ansible
Dmytro Slupytskyi
 
PDF
Docker tutorial2
Tatsuya Yagi
 
PPTX
Docker Ecosystem: Part III - Machine
Mario IC
 
PPTX
Dockerfile basics | docker workshop #1 at Rackspace
dotCloud
 
PDF
Docker Introduction
w_akram
 
PDF
Docker Containers: Developer’s experience and building robust developer envir...
Future Cloud Summit
 
PDF
Docker Started
Victor S. Recio
 
PDF
CoreOS Overview
Nikolay Yurin
 
PDF
Running Django on Docker: a workflow and code
Danielle Madeley
 
PPTX
Docker Introduction
Jannis Kirschner
 
PDF
Docker by Example - Quiz
CodeOps Technologies LLP
 
PDF
Docker introduction
cawamata
 
PPTX
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
dotCloud
 
PPTX
Django via Docker
Brenden West
 
PPTX
Docker
Amin Arab
 
PDF
Docker use dockerfile
cawamata
 
PDF
Introduction to Docker
Kuan Yen Heng
 
PDF
Docker Compose by Aanand Prasad
Docker, Inc.
 
PDF
Intro to containerization
Balint Pato
 
Docker 101 - Intro to Docker
Adrian Otto
 
Continuous integration with Docker and Ansible
Dmytro Slupytskyi
 
Docker tutorial2
Tatsuya Yagi
 
Docker Ecosystem: Part III - Machine
Mario IC
 
Dockerfile basics | docker workshop #1 at Rackspace
dotCloud
 
Docker Introduction
w_akram
 
Docker Containers: Developer’s experience and building robust developer envir...
Future Cloud Summit
 
Docker Started
Victor S. Recio
 
CoreOS Overview
Nikolay Yurin
 
Running Django on Docker: a workflow and code
Danielle Madeley
 
Docker Introduction
Jannis Kirschner
 
Docker by Example - Quiz
CodeOps Technologies LLP
 
Docker introduction
cawamata
 
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
dotCloud
 
Django via Docker
Brenden West
 
Docker
Amin Arab
 
Docker use dockerfile
cawamata
 
Introduction to Docker
Kuan Yen Heng
 
Docker Compose by Aanand Prasad
Docker, Inc.
 
Intro to containerization
Balint Pato
 

Similar to 1 docker first_linux_container_hands_on (20)

PDF
2 docker engine_hands_on
FEG
 
PDF
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
PPTX
Docker
Hussien Elhannan
 
PPTX
DockerSADASDASDA SADASDASDASDASDASDLabs.pptx
MuhamedAhmed35
 
PPTX
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
PDF
Using Docker with OpenStack - Hands On!
Adrian Otto
 
PDF
Introduction to Docker - Learning containerization XP conference 2016
XP Conference India
 
PPTX
Docker workshop
Evans Ye
 
PDF
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
Erica Windisch
 
PDF
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
PPTX
Docker Starter Pack
Saeed Hajizade
 
PPTX
Academy PRO: Docker. Part 2
Binary Studio
 
PDF
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
PPTX
Docker Workshop
Ahmad Rafiee
 
PDF
Docker @ Atlogys
Atlogys Technical Consulting
 
PDF
Docker by Example - Basics
Ganesh Samarthyam
 
PPTX
Docker and the Container Ecosystem
psconnolly
 
PPTX
Docker for developers z java
andrzejsydor
 
PDF
Docker 101 @KACST Saudi HPC 2016
Walid Shaari
 
PDF
Up and running with docker
Michelle Liu
 
2 docker engine_hands_on
FEG
 
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
DockerSADASDASDA SADASDASDASDASDASDLabs.pptx
MuhamedAhmed35
 
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
Using Docker with OpenStack - Hands On!
Adrian Otto
 
Introduction to Docker - Learning containerization XP conference 2016
XP Conference India
 
Docker workshop
Evans Ye
 
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
Erica Windisch
 
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
Docker Starter Pack
Saeed Hajizade
 
Academy PRO: Docker. Part 2
Binary Studio
 
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
Docker Workshop
Ahmad Rafiee
 
Docker by Example - Basics
Ganesh Samarthyam
 
Docker and the Container Ecosystem
psconnolly
 
Docker for developers z java
andrzejsydor
 
Docker 101 @KACST Saudi HPC 2016
Walid Shaari
 
Up and running with docker
Michelle Liu
 
Ad

More from FEG (20)

PDF
Supervised learning in decision tree algorithm
FEG
 
PDF
Unsupervised learning in data clustering
FEG
 
PDF
CNN_Image Classification for deep learning.pdf
FEG
 
PDF
Sequence Model with practicing hands on coding.pdf
FEG
 
PDF
Seq2seq Model introduction with practicing hands on coding.pdf
FEG
 
PDF
AIGEN introduction with practicing hands on coding.pdf
FEG
 
PDF
資料視覺化_Exploation_Data_Analysis_20241015.pdf
FEG
 
PDF
Operation_research_Linear_programming_20241015.pdf
FEG
 
PDF
Operation_research_Linear_programming_20241112.pdf
FEG
 
PDF
非監督是學習_Kmeans_process_visualization20241110.pdf
FEG
 
PDF
Sequence Model pytorch at colab with gpu.pdf
FEG
 
PDF
學院碩士班_非監督式學習_使用Orange3直接使用_分群_20240417.pdf
FEG
 
PDF
資料視覺化_透過Orange3進行_無須寫程式直接使用_碩士學程_202403.pdf
FEG
 
PDF
Pytorch cnn netowork introduction 20240318
FEG
 
PDF
2023 Decision Tree analysis in business practices
FEG
 
PDF
2023 Clustering analysis using Python from scratch
FEG
 
PDF
2023 Data visualization using Python from scratch
FEG
 
PDF
2023 Supervised Learning for Orange3 from scratch
FEG
 
PDF
2023 Supervised_Learning_Association_Rules
FEG
 
PDF
202312 Exploration Data Analysis Visualization (English version)
FEG
 
Supervised learning in decision tree algorithm
FEG
 
Unsupervised learning in data clustering
FEG
 
CNN_Image Classification for deep learning.pdf
FEG
 
Sequence Model with practicing hands on coding.pdf
FEG
 
Seq2seq Model introduction with practicing hands on coding.pdf
FEG
 
AIGEN introduction with practicing hands on coding.pdf
FEG
 
資料視覺化_Exploation_Data_Analysis_20241015.pdf
FEG
 
Operation_research_Linear_programming_20241015.pdf
FEG
 
Operation_research_Linear_programming_20241112.pdf
FEG
 
非監督是學習_Kmeans_process_visualization20241110.pdf
FEG
 
Sequence Model pytorch at colab with gpu.pdf
FEG
 
學院碩士班_非監督式學習_使用Orange3直接使用_分群_20240417.pdf
FEG
 
資料視覺化_透過Orange3進行_無須寫程式直接使用_碩士學程_202403.pdf
FEG
 
Pytorch cnn netowork introduction 20240318
FEG
 
2023 Decision Tree analysis in business practices
FEG
 
2023 Clustering analysis using Python from scratch
FEG
 
2023 Data visualization using Python from scratch
FEG
 
2023 Supervised Learning for Orange3 from scratch
FEG
 
2023 Supervised_Learning_Association_Rules
FEG
 
202312 Exploration Data Analysis Visualization (English version)
FEG
 
Ad

Recently uploaded (20)

PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 

1 docker first_linux_container_hands_on

  • 1. Docker First linux container hands on 2020-11-11 Orozco Hsu
  • 2. Agenda • Docker engine • Containers & images • Image registries and Docker Hub • Container isolation
  • 3. Play With Docker (PWD) • Sign-Up an account and use PWD • https://labs.play-with-docker.com/ Use Chrome browser
  • 5. Docker engine • Running your first container => Run docker run hello-world
  • 8. Containers & images • Docker Images • Run => • The pull command fetches the alpine image from the Docker registry and saves it in our system. In this case the registry is Docker Hub • You can change the registry, but that’s a different lab docker pull alpine Alpine is a lightweight Linux distribution so it is quick to pull down and run, making it a popular starting point for many other images
  • 9. Containers & images • Docker Images • RUN => docker images
  • 10. Containers & images • Docker containers • RUN => docker run alpine ls -l or docker run alpine ls | wc -l
  • 12. Containers & images • Docker run • RUN => • RUN => • RUN => • RUN => docker run alpine echo "hello from alpine" docker run alpine /bin/sh docker run -it alpine /bin/sh Ctl + P + Q
  • 13. Containers & images • Docker run • RUN => docker ps -a
  • 14. Containers & images • Docker stop • RUN => • Docker start • RUN => docker stop XXXXX docker start XXXXX
  • 15. Container isolation • Docker exec • RUN => • RUN => docker exec -it XXXXX /bin/sh docker rm -f `docker ps -a -q`
  • 16. Image registries and Docker Hub • Docker commit • RUN => • Docker push • RUN => • RUN => • RUN => docker commit XXXXX orozcohsu/test docker push orozcohsu/test Enter your account and password of dockerhub docker login docker logout
  • 17. Image registries and Docker Hub • Dockerhub • https://hub.docker.com/
  • 19. Prepare it for next-week
  • 20. Create your first docker environment • Install VMware Workstation 15 Pro in your laptop • https://mega.nz/file/zHxlyASC#47BjSzA8iR26nUT4g4YVVWTw0eo- qchQzPygLI4sE4U • Install CentOS7 (CentOS-7-x86_64-DVD-2003.iso) • http://ftp.ksu.edu.tw/FTP/CentOS/7/isos/x86_64/CentOS-7-x86_64-DVD- 2003.iso • Install Putty • https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html