type
status
date
slug
summary
tags
category
icon
password
Reminder
URL
Serial
Note
Description
Category
Wordpress Link
Anydesk: 1855809607
I. Introduction to Web Applications:
A web (based) application is any program that is accessed over a network connection using HTTP, rather than existing within a device’s memory
Performance – Speed – Accessibility – Security – Cost – Scalability
- Build your app
- Pack it for shipping
- Host or run the app
II. Creating Simple Web Application:
Demo: Making a Webapp
Ubuntu 16.04
paste the 2 line in the end of the file then save the file and exit nano:
“Containers are an abstraction at the Application layer that packages codes and dependencies together”
Containers:
- . Consume less storage and memory
- . Easier and faster to ship
- . If they work on one machine, they work on all machines
- . Cost efficient and easy to scale
- . Possible to eliminate data loss and downtime
who are using containers:
Google expedia paypal gsk pokemon go
“Docker is an open platform for developers and system admins to build, ship and run containerized applications”
Docker:
- . Most widely used containerization platform
- . Huge community support
- . Large amount of 3rd party application support
- . Works on Windows and Mac too
Install docker on linux
Demo: 1st application with Docker
Docker architecture and Docker files

Docker Engine Architecture


Demo: Write your Dockerfile (Fundamental Instructions)
pwdtree -L 1tree -l -d
cd CC_Docker/S2/D-1touch Dockerfilenano DockerfileDocker build -t img_from .docker imagesDemo2:
cd /home/username/CC_Docker/S2/D-2touch Dockerfilenano Dockerfiledocker build -t img_run-env .docker run -ith —name cont_run-env img_run-envdocker ps -adocker exec -it cont_run-env bashlsecho $USERecho $SHELLecho $LOGNAMEcd /homelsexitDemo: Write your Docker file (Expose Instruction)
cd CC_Docker/S2/D-6lstouch Dockerfilenano Dockerfiledocker build -t img_expose .docker imagesdocker run -itd -rm -name cont_expose -p 8080:80 img_exposedocker ps -aNote for the upcoming Apache demo Hello everyone!
So, in the previous lecture, we containerized Nginx web-server and ubuntu as the runtime environment for it. We exposed the Nginx container’s port 80 and mapped it with Docker host’s port 8080.
Our container is still serving on the host port 8080.
Now, in order to run our Apache container successfully, we need to free up port 8080 for course continuity purposes.
Use the following command to do so:
docker container stop cont_exposeNote: This updated text has been added as a result of multiple student queries.
Happy Learning:)
Demo: Containerize Apache Web-Server
cd CC_Docker/S2/D-7lstouch Dockerfilenano Dockerfiledocker build -t img_apache .docker run -itd —name cont_apache -p 8080:80 img_apache- Docker Images and Containers
- Namespace: same as user name
- Repository name: repo-nginx
- Short Description: This is nginx repo created and maintained by …
- Full Description:
- Visibility: public / private (Docker offers 1 private repo and unlimited public repo with free Docker hub account)
docker login -u dpham1989docker tag nginx:latest dpham1989/repo-nginx:cc-nginxdocker imagesdocker image push dpham1989/repo-ngninx:cc-nginx- check on docker hub
3.1 Introduction to Docker Images

3.2 Demo: Docker Hub Walkthrough
3.3 Demo: Working with Docker Images | Search, List, Push, Pull
docker search python:3.6docker search registrydocker search --filter "is-official=true" registrydocker search --format "table {{.Name}}\t{{.Description}}\t{{.IsOfficial}}" registry docker images / docker image lsdocker images ubuntudocker images ubuntu:16.04docker images --no-trunc ubuntu:16.04docker image pull nginx:latestdocker image pull nginx:alpinedocker images nginxdocker image pull --all-tags nginxNavigate back to Docker Hub ⇒ Create Repository (make a repo and push image to it)
dckr_pat_ESJ2tcZuyGLTLX9BFWCjaFwkjx83.4 Demo: Know your Docker Image | Inspect and History
3.5 Demo: Pruning and Removing Images
3.6 A Container is born!
3.7 Demo: Container Run Vs Create
3.8 Demo: Working with Containers | Start, Stop and Rename
3.9 Demo: Attach and execute commands on a running container
- Author:NotionNext
- URL:https://tangly1024.com/article/docker
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!