• Stars
    star
    164
  • Rank 230,032 (Top 5 %)
  • Language
    Dockerfile
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deploy Application using Docker with Nginx

Deploy Application using Docker with Nginx

Docker Deep Dive Book PDF

Docker Tutorial

Docker for beginners tutorial

https://github.com/Ameen-Alam/CNC-Docker.git Clone the sample app from GitHub.

$ git clone https://github.com/Ameen-Alam/CNC-Docker.git

The clone operation creates a new directory called CNC-Docker . Change directory into CNC-Docker and list its contents.

$ cd CNC-Docker

Available Multiple Image Directories (001-static --to-- 010-mongoDB)

$ cd 001-static

two way to run a container

  • The Ops perspective
  • The Dev perspective

Start The Ops Perspective

If you are working from a freshly installed Docker host it will have no images and will look like the output above. Getting images onto your Docker host is called β€œpulling”. If you are following along with Linux, pull the ameenalam/nodeapp:latest.

To pull an image

docker pull <image_name>:<tag>

$ docker image pull ameenalam/nodeapp:latest

Docker images list

$ docker image ls

Run Container

docker run -d --name <container_name> -p <host_port>:<container_port> <image_name>:<tag>

$ docker container run -d --name=web2 -p=7000:8080 ameenalam/nodeapp:latest

For Test

$ curl http://localhost:7000

Open a web browser and navigate to the DNS name or IP address of the host that you are running the container from and point it to port 7000. You will see the following web page.

http://localhost:7000/


Push images to Docker Cloud

Docker Cloud uses Docker Hub as its native registry for storing both public and private repositories. Once you push your images to Docker Hub, they are available in Docker Cloud.

In order to get you started, let us get you a Docker ID.

https://hub.docker.com/

Docker login

Log in to Docker Cloud using the docker login command.

$ docker login

Tag Image

Tag your image using docker tag.

$ docker tag image_name username/image_name

Push your image to Docker Hub

Push your image to Docker Hub using docker push (making the same replacements as in the previous step).

$ docker push username/image_name

Check that the image you just pushed appears in Docker Cloud. Go to Docker Cloud and navigate to the Repositories tab and confirm that your image appears in this list.

Facebook Profile: https://www.facebook.com/SheikhAmeenAlam

Thankyou.

More Repositories

1

PIAIC-HTML-CSS-Assignments

PIAIC HTML and CSS Assignments
47
star
2

CKAD-exercises

My Name is Ameen Alam, Alhamdulillah Certified Kubernetes Application Developer. A set of exercises to prepare for Certified Kubernetes Application Developer exam by Cloud Native Computing Foundation
44
star
3

PIAIC-JS-Assignments

PIAIC Java-script assignments content and sample
31
star
4

PIAIC-Advance-JS-Assignments

PIAIC-Advance-JS-Assignments
JavaScript
15
star
5

PIAIC-React-Assignment

PIAIC-React-Assignment
JavaScript
13
star
6

Git-Cheat-Sheet

Git-Cheat-Sheet
11
star
7

NextJS-FullStack-Auth

NextJS-FullStack-Auth using db.json file
TypeScript
5
star
8

ameen-mart

ameen-mart - Departmental Store
Python
5
star
9

Linux-Administrator

Linux-Administrator Commands and Practices
5
star
10

3-tier-app-kubernetes

3-tier-app-kubernetes
JavaScript
5
star
11

Todo-App-React-Redux-firebase-react-router-v4-bootstrap

JavaScript
5
star
12

Webpack-Setup-For-Javascript-And-Firebase

Ameen-Alam/Webpack-Setup-For-Javascript-And-Firebase
JavaScript
5
star
13

NodeJS-File-Upload-AWS-S3-Bucket

NodeJS-File-Upload-AWS-S3-Bucket
JavaScript
4
star
14

PIAIC-AWS

3
star
15

JSON-Server

JSON-Server
3
star
16

serverless-sam

JavaScript
2
star
17

Android-IOS-App

Android-IOS-App
JavaScript
2
star
18

bamboo

bamboo project
Python
2
star
19

javascript-code-challenges

javascript-code-challenges
HTML
2
star
20

jenkins

Groovy
2
star
21

learn-generative-ai

learn-generative-ai
Jupyter Notebook
2
star
22

katacoda-scenarios

Katacoda Scenarios
1
star
23

marketplace

marketplace
HTML
1
star
24

gatsby-boilerplate

gatsby-boilerplate
CSS
1
star
25

infinity-installation

1
star
26

Web-Crawling

Scrapes the main page of Hacker News and returns an array of objects using Puppeteer and Cheerio
JavaScript
1
star
27

Mysql-Replication

Mysql-Replication Master-Master Master-Slave
HTML
1
star
28

chatme-android-amplify

chatme-android-amplify
Java
1
star
29

netstat-and-ss-linux

netstat-and-ss-linux
HTML
1
star
30

Gradle-for-Android-and-Java

Gradle for Android and Java
Java
1
star
31

magenta

Python
1
star
32

MySQL

Shell
1
star
33

nodemailer

JavaScript
1
star
34

react-angular-nodejs-tasks-2016

Saylani react-angular-nodejs-tasks-2016
JavaScript
1
star
35

PIAIC-batch36-UIT-Static-Site

PIAIC-batch36-UIT-Static-Site
CSS
1
star
36

Admin-Tools

Free Admin Tools
1
star
37

JBoos

JBoos
1
star
38

React-firebase

JavaScript
1
star
39

SSL

SSL
HTML
1
star
40

Firebase-Practice

Firebase-Practice
HTML
1
star
41

selenium

Selenium
Java
1
star
42

hssi-assignments

1
star
43

portfolio

too old, it was created in 2015
JavaScript
1
star
44

OMYS-Web-Mobile-Batch-7

OMYS-Web-Mobile-Batch-7
HTML
1
star
45

metasploit-framework

metasploit-framework
HTML
1
star
46

piaic-batch61

Python
1
star