Giter Club home page Giter Club logo

website-workshop1's Introduction

Docker 101 Workshop - Day 1

One Day workshop on understanding Docker and Containers. Learn to run a container, inspect a container and understand the isolation of processes. Create a Dockerfile, and build an image from a Dockerfile. Learn how to mount application code using volume mount. Learn how to make your app data persistent across multiple containers. Learn how to create multiple containers from a single image, run multiple containers using docker-compose, and more.

Prerequisites

Workshop environment setup

  • Check if Git, Docker, and Docker Compose are installed in on the system. Open the terminal and run the following command

    mis@mispl-lap-31:~$ git --version
    git version 2.25.1
    
    mis@mispl-lap-31:~$ docker --version
    Docker version 20.10.17, build 100c701
    
    mis@mispl-lap-31:~$ docker compose version
    Docker Compose version v2.6.0
    
    
  • Open terminal and run following command to create a folder called workshop

    mkdir workshop
    
  • Navigate to the folder workshop and clone the from your personal repo using git

    cd workshop
    
  • Clone Website-Workshop1 repo && go inside Webiste-Workshop1 folder

    git clone [email protected]:UniCourt/Website-Workshop1.git
    cd Website-Workshop1
    
  • To open folder in VS code editor

    cd ~/workshop/Website-Workshop1
    code .
    
  • If docker is not installed in your Linux run the following command

    $ curl -fsSL https://get.docker.com -o get-docker.sh
    $ sudo sh get-docker.sh
    
  • Download dockersamples/101-tutorial image and bring up the container

    sudo docker run -d -p 8081:80 dockersamples/101-tutorial
    
  • open up http://localhost:8081/ in your browser

What will you learn by the end of this workshop?

  • By the end of this workshop, you will learn what docker is and understand how to set up containers.
  • You will be introduced to containerization concepts and why it is required.
  • You will learn how to build and run your own Containers.
  • You will learn how to run Multiple Services with Docker Compose.
  • You will learn how to build and run PHP and NGNIX containers.

Schedule

Time Topics
09:00 - 09:30 [Introduction/What we do ?]
09:30 - 09:45 Video Session: Introduction to Docker and Containers
09:45 - 10:30 Simple Docker Commands
10:00 - 10:30 Getting Started, Our Application
10:00 - 11:00 Updating our App
11:00 - 11:45 Sharing our App
11:45 - 01:00 Persisting our DB and Bind Mounts
01:00 - 02:00 [Break]
02:00 - 03:30 Multi-Container Apps
03:00 - 05:00 Using Docker Compose
05:00 - 05:15 [Q & A]
05:15 - 05:30 [Wrapping Up]

website-workshop1's People

Contributors

vivek-uc avatar pshenoy-uc avatar srakshitha296 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.