Hands-On Labs Docker Containerized
Hands-On Labs Docker Containerized
Hands-On Labs Docker Containerized
Objectives:
● Learn what is Docker Container and its principles
● Guided tour to Docker installation dan labs
Syllabus
● Introduction to Cloud Native, Docker, and Kubernetes
● Installation Docker CLI
● Setup Dockerfile and docker-compose
● Build docker Image
● Run Image in Container
Summary:
● What is Cloud Native?
● How does a cloud-native approach benefit businesses
● What is the CNCF
● Cloud-native Architecture
● Application development
Lecture Notes 2: Containers
Summary:
● VM vs Container
● What is a container?
○ Standardized packaging for software and dependencies
○ Isolate apps from each other
○ Share the same OS kernel
○ Works for all major Linux distributions
● Docker
○ Docker image
○ Docker container
○ Docker engine
○ Docker registry (docker hub, google container registry, etc.)
Hands-on Labs 1 :
● Installation Docker
On Windowsa
On macOS
On Linux Ubuntu 20.04
Ip : 203.210.84.159
Port 9299
Username : nama sendiri
Password : alka2023
Docker Compose
docker-compose --version
docker container create --name webserver -p Membuat docker container webserver dengan nginx
80:80 nginx
FROM node:16.14.0-alpine
WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
CMD ["node", "app.js"]
EXPOSE 3000
$ Example script :
version: '3.7'
services:
app:
container_name: app_demo
image: devradyalabs/demoapp:1.0
ports:
- 3000:3000
networks:
- app
networks:
app:
$ docker-compose up -d