Skip to content

dzarurizkyy/study-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Study Docker 🐳

This repository contains examples of basic Docker commands, how to write a Dockerfile, and how to use Docker Compose. It also includes hands-on exercises and practical scenarios to practice and strengthen your Docker skills.

Installation πŸ”§

  1. Download Docker Desktop

  2. Install it like a regular application

  3. Verify installation:

    docker --version
    

List of Material πŸ“š

  • πŸ“˜ Docker Basics

    Contains examples of common Docker commands, such as:

    # Display running containers
    docker container ls
    
    # Create docker container
    docker container create --name my-nginx nginx:latest
    
    # Start docker container
    docker container start my-nginx
  • πŸ“— Dockerfile

    Shows how to build custom images with Dockerfile, including:

    # Use base image
    FROM node:18-alpine
    
    # Copy files and install dependencies
    WORKDIR /app
    COPY . .
    RUN npm install
    
    # Start application
    CMD ["npm", "start"]
  • πŸ“™ Docker Compose

    Demonstrates how to manage multiple services using Docker Compose, such as:

    version: "3.8"
    services:
      web:
        image: nginx
        ports:
          - "8080:80"
      db:
        image: postgres:14
        environment:
          POSTGRES_USER: user
          POSTGRES_PASSWORD: pass
          POSTGRES_DB: mydb

πŸ“ References

πŸ‘¨β€πŸ’» Contributors

About

This repository contains Docker commands, Dockerfile and Compose examples, along with hands-on exercises.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors