Getting started with Docker
Перейти к файлу
Michael Irwin c7bbd0119f
Merge pull request #341 from docker/speed-up-builds-with-platform-flags
Add platform flags to Dockerfile to speed up builds
2023-01-09 15:00:18 -05:00
.github/workflows Add the setup-buildx-action and update build-push-action 2022-12-22 15:57:09 -05:00
app Update MySQL handler to add timeout for DNS query failures 2022-12-13 16:53:36 -05:00
docs Merge pull request #308 from umutesen/patch-1 2023-01-06 14:34:35 -05:00
.dockerignore Add app/Dockerfile to both docker and gitignore files 2022-11-22 22:10:33 -05:00
.gitignore Add app/Dockerfile to both docker and gitignore files 2022-11-22 22:10:33 -05:00
Dockerfile Add BUILDPLATFORM and TARGETPLATFORM flags to speed up builds 2022-12-22 15:52:21 -05:00
LICENSE Initial commit 2020-02-05 22:04:43 -05:00
README.md Merge branch 'master' into docs-wording-improvements 2022-11-28 17:54:22 -05:00
build.sh Build amd64 and arm64 image 2020-12-10 12:34:01 +01:00
docker-compose.yml Initial commit 2020-02-05 22:04:43 -05:00
mkdocs.yml Update copyright to current year 2022-11-22 23:32:14 -05:00
requirements.txt Fix Build Error #257 2022-04-04 15:20:17 +03:00

README.md

Docker Getting Started Tutorial

This tutorial was written with the intent of helping folks get up and running with containers and is designed to work with Docker Desktop. 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 containers
  • 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 after installing Docker Desktop:

docker run -d -p 80:80 docker/getting-started

Once it has started, you can open your browser to http://localhost.

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

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 want to suggest adding new content, please open an issue first before working on your idea. While we love input, we want to keep the tutorial 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!