Spaces:
Sleeping
Sleeping
docker readme
Browse files- tmp/README_docker.md +44 -0
tmp/README_docker.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Docker Getting Started Tutorial
|
2 |
+
|
3 |
+
This tutorial was written with the intent of helping folks get up and running
|
4 |
+
with containers and is designed to work with Docker Desktop. While not going too much
|
5 |
+
into depth, it covers the following topics:
|
6 |
+
|
7 |
+
- Running your first container
|
8 |
+
- Building containers
|
9 |
+
- Learning what containers are
|
10 |
+
- Running and removing containers
|
11 |
+
- Using volumes to persist data
|
12 |
+
- Using bind mounts to support development
|
13 |
+
- Using container networking to support multi-container applications
|
14 |
+
- Using Docker Compose to simplify the definition and sharing of applications
|
15 |
+
- Using image layer caching to speed up builds and reduce push/pull size
|
16 |
+
- Using multi-stage builds to separate build-time and runtime dependencies
|
17 |
+
|
18 |
+
## Getting Started
|
19 |
+
|
20 |
+
If you wish to run the tutorial, you can use the following command after installing Docker Desktop:
|
21 |
+
|
22 |
+
```bash
|
23 |
+
docker run -d -p 80:80 docker/getting-started
|
24 |
+
```
|
25 |
+
|
26 |
+
Once it has started, you can open your browser to [http://localhost](http://localhost).
|
27 |
+
|
28 |
+
## Development
|
29 |
+
|
30 |
+
This project has a `docker-compose.yml` file, which will start the mkdocs application on your
|
31 |
+
local machine and help you see changes instantly.
|
32 |
+
|
33 |
+
```bash
|
34 |
+
docker compose up
|
35 |
+
```
|
36 |
+
|
37 |
+
## Contributing
|
38 |
+
|
39 |
+
If you find typos or other issues with the tutorial, feel free to create a PR and suggest fixes!
|
40 |
+
|
41 |
+
If you have ideas on how to make the tutorial better or want to suggest adding new content, please open an
|
42 |
+
issue first before working on your idea. While we love input, we want to keep the tutorial scoped to new-comers.
|
43 |
+
As such, we may reject ideas for more advanced requests and don't want you to lose any work you might
|
44 |
+
have done. So, ask first and we'll gladly hear your thoughts!
|