/docker-tutorial

Tutorial for basic Docker operations

Primary LanguageC#MIT LicenseMIT

Tutorial for Docker

Installation

Check Installation guide

  1. Run "sysinfo". Check 4 "Hyper-V" items. On my system, they are all enabled. You may need to go to BIOS to enable virtualization.
  2. Follow WSL install
  3. Follow Checking virtualization

Overview

  1. General
  2. Guide
    1. Basic
    2. Develop using Docker
    3. Set up CI/CD
    4. Deploy app to the cloud
    5. Azure container instance
    6. Docker Swarm Mode
    7. Docker networking
    8. Manage application data
    9. Samples
    10. 12 factor application
  3. Getting started guide: getting-started-from-docker folder.
  4. ASP NET Core guide: asp-net-core-basic folder.
  5. The GitHub Actions workflow is at .github\workflows folder.
  6. The "getting started" on Kubernetes is at kubernetes folder.
  7. The "getting started" on Docker Swarm is at swarm folder.
  8. The "security lab" is at security folder.
  9. The "Go development environment" is at go-dev-env folder.
  10. The "getting started" on Helm is at helm folder.

Useful Visual Studio Code extensions

Useful docker commands

  • docker build -t getting-started .
  • docker run -dp 3000:3000 getting-started
  • docker ps
  • docker stop
  • docker rm
  • docker login -u YOUR-USER-NAME
  • docker tag getting-started YOUR-USER-NAME/getting-started
  • docker push YOUR-USER-NAME/getting-started
  • docker volume create todo-db
  • docker run -dp 3000:3000 -v todo-db:/etc/todos getting-started
  • docker volume inspect todo-db
  • docker network create todo-app
  • docker logs