0% found this document useful (0 votes)
81 views18 pages

Docker Fundamental PDF

This document provides an overview of Docker fundamentals including containers, Docker commands, and putting data in containers. It discusses how containers are more lightweight than virtual machines and how they provide consistent environments. It also outlines how to access Docker documentation, install Docker on Windows and Ubuntu, and use basic Docker commands like pulling images, running containers, listing containers, and removing containers. The document demonstrates how to add data to containers interactively using exec, through builds, with Docker Compose, and by mounting volumes. It concludes with a request for feedback by filling out a questioner.

Uploaded by

ARIF DERMAWAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views18 pages

Docker Fundamental PDF

This document provides an overview of Docker fundamentals including containers, Docker commands, and putting data in containers. It discusses how containers are more lightweight than virtual machines and how they provide consistent environments. It also outlines how to access Docker documentation, install Docker on Windows and Ubuntu, and use basic Docker commands like pulling images, running containers, listing containers, and removing containers. The document demonstrates how to add data to containers interactively using exec, through builds, with Docker Compose, and by mounting volumes. It concludes with a request for feedback by filling out a questioner.

Uploaded by

ARIF DERMAWAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Docker Fundamental

Imam Adiwibowo
[email protected]
Agenda
• Overview Containers
• Containers vs Virtual Machines
• Accessing Docker Documentations
• Installing Docker
• Docker Basic Commands
• Put Data to Container
Telkomtelstra Product Portfolio

Professional Services

Integrated Service Management


Operations Customer Service Desk
Centre Portal Support

Unified Managed Cloud Managed Security


Communications Service
SaaS • Multi-Channel • Office365
Communication
IP Telephony • Digital Proximity
and UC • Cloud Contact Centre
• Hosted Exchange CPE based
Managed IaaS
Private cloud, Hybrid cloud, Public Cloud
Video Services
Cloud based
Managed Network MWAN + MLAN/
Services WAN Opti WLAN

Network Infrastructure

3
Telkomtelstra Container as a Service Website

https://www.telkomtelstra.co.id/CaaS
Overview: Containers
• A container is a standard unit of
software that packages up code
and all its dependencies, so the
application runs quickly and
reliably from one computing
environment to another
• The first and still most popular
container technology, Docker's
open-source containerization
engine works with most of the
products that follow, as well as Source: docker.com

many open-source tools


Docker
Docker Hub Docker Host
Containers
Apache
Docker Server Images
Nginx
Apache
MySQL REST API
Nginx

Docker Client MySQL


Containers vs Virtual Machine

Source: docker.com
Containers vs Virtual Machine
Containers Virtual Machine

• Containers are an abstraction at • Virtual machines (VMs) are an


the app layer that packages code abstraction of physical hardware
and dependencies together turning one server into many
• Containers take up less space servers
than VMs (container images are • Each VM includes a full copy of
typically tens of MBs in size) an operating system, the
application, necessary binaries
and libraries
Source: docker.com
Containers Use Cases
• Speed-up Development • Sysadmin Playground
Developer can use ready-to-use Use containers to test new
pre-configured container image applications or services in ‘clean’
instead of install and configure environment
application prerequisite • Quick Rollout and Rollback
manually Use updated container image to
• Consistent Environment replace existing container. In
Developer and system ops can case of problems, we can
use the same container image effortlessly rollback to previous
for development as well as container image
production
Accessing Docker Documentation
• Docker Documentation Home Page
https://docs.docker.com/
• Docker Engine Documentation
https://docs.docker.com/engine/
• Docker Compose Documentation
https://docs.docker.com/compose/
• Docker Desktop Documentation
https://docs.docker.com/desktop/
• Docker Hub Documentation
https://docs.docker.com/docker-hub/
Install Docker

Windows (Docker Desktop) Ubuntu (Docker Engine)


• Download and run Docker Desktop • Installation Method
Installer. • Docker Repository
• OS Requirement • Manual download DEB package
• Windows 10 64-bit: Pro, Enterprise, or • Convenience Script
Education (Build 17134 or later) with
Hyper-V and Containers Windows
• OS Requirement
features must be enabled • Ubuntu Groovy 20.10
• Windows 10 64-bit with WSL2 Installed • Ubuntu Focal 20.04 (LTS)
• Ubuntu Bionic 18.04 (LTS)
• Ubuntu Xenial 16.04 (LTS)
• Docker Engine is supported on x86_64
(or amd64), armhf, and arm64
architectures
Demo
• Install Docker Desktop on Windows
• Install Docker Engine on Ubuntu
Docker Basic Commands
• Get image from container registry • Remove image
docker pull nginx docker rmi [imageid]
docker rmi $(docker images –aq)
• List container images
docker images • Get interactive with container
docker exec -it [contid] bash
• Run a container
docker run hello-world • Save changes into image
docker run -it centos bash docker commit [contid] phpinfo
• List containers • Save changes for import
docker ps docker save phpinfo phpinfo.tar
docker ps –a docker import phpinfo.tar phpinfo
• Remove container
docker rm [contid]
docker rm $(docker ps –aq)
Demo
• Docker Command Basic Usage
Put Data to Container
• Interactively
docker exec -it [contid] bash

• Docker Build
docker built -t php_info_build .
• Docker Compose
docker-compose up
• Volumes
docker run … -v ~/html:/nginx/html
nginx
Demo
• Adding Data to Container
Feedback
• Dapatkan merchandise menarik
untuk 10 orang terpilih dengan
mengisi questioner di halaman
berikut:

http://bit.ly/TTCCaS1
Q&A

You might also like