• This repository has been archived on 07/Jan/2023
  • Stars
    star
    335
  • Rank 125,904 (Top 3 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 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

Docker 101 Tutorial

⚠️ This project is archived. The official "Getting Started" guide can be found at docker/getting-started.

This tutorial has been written with the intent of helping folks get up and running with containers. While not going too much into depth, it covers the following topics:

  • Running your first container
  • Building containers
  • Learning what containers are running and removing them
  • Using volumes to persist data
  • Using bind mounts to support development
  • Using container networking to support multi-container applications
  • Using Docker Compose to simplify the definition and sharing of applications
  • Using image layer caching to speed up builds and reduce push/pull size
  • Using multi-stage builds to separate build-time and runtime dependencies

Getting Started

If you wish to run the tutorial, you can use the following command:

docker run -dp 80:80 dockersamples/101-tutorial

Once it has started, you can open your browser to http://localhost or port 80 if running on Play-with-Docker.

Development

This project has a docker-compose.yml file, which will start the mkdocs application on your local machine and help you see changes instantly.

docker-compose up

By default, the dev container will use the English version of the tutorial. If you wish to work on a different version, modify the services.docs.build.args.LANGUAGE value to the language you want to work in. Note that the build will fail if the steps below (for new languages) haven't been completed yet.

Contributing

If you find typos or other issues with the tutorial, feel free to create a PR and suggest fixes!

If you have ideas on how to make the tutorial better or new content, please open an issue first before working on your idea. While we love input, we want to keep the tutorial is scoped to new-comers. As such, we may reject ideas for more advanced requests and don't want you to lose any work you might have done. So, ask first and we'll gladly hear your thoughts!

Translating the Tutorial

If you wish to translate the tutorial into another language, you need to do the following:

  1. Copy the docs_en directory and rename it as docs_[your-language-code].
  2. Translate each of the directories.
  3. Translate all *.md files
  4. In the mkdocs-config.json, add a key for your-language-code and fill in the remaining pieces to configure the mkdocs build.
  5. To test everything out, you can run the build.sh script, which will verify the config file, as well as build all languages.

More Repositories

1

example-voting-app

Example distributed app composed of multiple containers for Docker, Compose, Swarm, and Kubernetes
C#
4,558
star
2

docker-swarm-visualizer

A visualizer for Docker Swarm Mode using the Docker Remote API, Node.JS, and D3
JavaScript
3,250
star
3

atsea-sample-shop-app

A sample app that uses a Java Spring Boot backend connected to a database to display a fictitious art shop with a React front-end.
Java
688
star
4

wordsmith

Sample project with Docker containers running under Kubernetes
Java
257
star
5

compose-dev-env

Example used to try a compose application with Docker Dev Environments
Go
137
star
6

docker-fifth-birthday

100
star
7

node-bulletin-board

Sample bulletin board app in Node.js and Vue.js
JavaScript
98
star
8

single-dev-env

Example used to try a single container sample of Docker Dev Environments
Go
86
star
9

dockercoins

HTML
71
star
10

global-2018-hol

Hands-On labs for the global 2018 event series
PHP
59
star
11

aspnet-monitoring

Monitoring ASP.NET Fx applications in Windows Docker containers, using Prometheus
JavaScript
56
star
12

linux_tweet_app

A very simple webapp based on NGINX
HTML
47
star
13

javaee-demo

Demo migrating a JavaEE application to Docker
Java
40
star
14

newsletter-signup

Newsletter Sign Up - a .NET Framework app using Docker containers on Windows
JavaScript
28
star
15

docker-hub-ml-project

Python
27
star
16

gopher-task-system

A Task System using Go Docker SDK.
Go
20
star
17

buildme

buildme
Dockerfile
18
star
18

windows-2003

Sample apps taken from Windows Server 2003 and running in Docker Windows containers
Dockerfile
14
star
19

link-shortener-typescript

A Simple URL Shortener built using TypeScript and Nest.js powered with Docker
TypeScript
14
star
20

wearedevelopers-2023

The sample application used for Docker's WeAreDevelopers 2023 talk
JavaScript
8
star
21

elastic-windows

Samples for Elasticsearch and Kibana running in Windows Docker containers
PowerShell
7
star
22

helloworld-demo-python

Demonstrating Hello World Python Example for docker init CLI
Python
7
star
23

student-record-management

Building a Student Record Management app using .NET and Docker
C#
7
star
24

docker-init-demos

Sample apps to demonstrate the power of docker init
Rust
6
star
25

.github

5
star
26

node-mongo-docker

Creating a REST API using Node, Mongo and Docker
JavaScript
3
star
27

dotnetconf19

Code for the 2019 .NET Conf challenge
C#
2
star
28

helloworld-demo-node

Example used to demonstrate docker init CLI for a simple Hello World Node Program
Dockerfile
2
star
29

build-cloud-cookbook

Rust
2
star
30

dind-rapid7

Shell
1
star
31

project-template

A Sample repository template for a new project
Dockerfile
1
star