Skip to content

Commit 52a41bf

Browse files
authored
Merge pull request #20999 from dvdksn/guides-filters
site: use filter-based nav for guides
2 parents fa372c1 + 4238c62 commit 52a41bf

File tree

179 files changed

+2784
-2325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+2784
-2325
lines changed
File renamed without changes.
File renamed without changes.

content/get-started/workshop/10_what_next.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,3 @@ Docker recommends watching the video workshop from DockerCon 2022. Watch the ent
5151
If you'd like to see how containers are built from scratch, Liz Rice from Aqua Security has a fantastic talk in which she creates a container from scratch in Go. While the talk does not go into networking, using images for the filesystem, and other advanced topics, it gives a deep dive into how things are working.
5252

5353
<iframe src="https://www.youtube-nocookie.com/embed/8fi7uSYlOdc" style="max-width: 100%; aspect-ratio: 16 / 9;" width="560" height="auto" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
54-
55-
## Language-specific guides
56-
57-
If you are looking for information on how to containerize an application using your favorite language, see the [Language-specific guides](/guides/language/_index.md).

content/guides/_index.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,9 @@ keywords: Docker guides
44
description: Explore the Docker guides
55
params:
66
icon: developer_guide
7-
notoc: true
8-
dive-deeper:
9-
- title: Language-specific guides
10-
description: Learn how to containerize, develop, and test language-specific apps using Docker.
11-
link: /language/
12-
icon: code
13-
- title: Use-case guides
14-
description: Walk through practical Docker applications for specific scenarios.
15-
link: /guides/use-case/
16-
icon: task
17-
- title: Deployment and Orchestration
18-
description: Deploy and manage Docker containers at scale.
19-
link: /guides/deployment-orchestration/orchestration/
20-
icon: workspaces
21-
resources:
22-
- title: Educational resources
23-
description: Explore diverse Docker training and hands-on experiences.
24-
link: /guides/resources/
25-
icon: book
26-
- title: Contribute to Docker's docs
27-
description: Learn how to help contribute to Docker docs.
28-
link: /contribute/
29-
icon: edit
30-
layout: wide
7+
layout: landing
8+
aliases:
9+
- /learning-paths/
3110
---
3211

3312
This section contains more advanced guides to help you learn how Docker can optimize your development workflows.
34-
35-
## Advancing with Docker
36-
37-
Explore more advanced concepts and scenarios in Docker.
38-
39-
{{< grid items="dive-deeper" >}}
40-
41-
## Educational resources and contributions
42-
43-
Discover community-driven resources and learn how to contribute to Docker docs.
44-
45-
{{< grid items="resources" >}}

content/guides/language/cpp/_index.md renamed to content/guides/cpp/_index.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
---
2-
description: Containerize and develop C++ applications using Docker.
3-
keywords: getting started, c++
42
title: C++ language-specific guide
53
linkTitle: C++
4+
description: Containerize and develop C++ applications using Docker.
5+
keywords: getting started, c++
6+
summary: |
7+
This guide explains how to containerize C++ applications using Docker,
8+
covering how to build Docker images, manage dependencies, and deploy C++ apps
9+
efficiently in containers.
610
toc_min: 1
711
toc_max: 2
812
aliases:
9-
- /language/cpp/
13+
- /language/cpp/
14+
- /guides/language/cpp/
15+
languages: [cpp]
16+
levels: [beginner]
17+
params:
18+
time: 10 minutes
1019
---
1120

1221
The C++ getting started guide teaches you how to create a containerized C++ application using Docker. In this guide, you'll learn how to:
@@ -15,13 +24,11 @@ The C++ getting started guide teaches you how to create a containerized C++ appl
1524
>
1625
> Docker would like to thank [Pradumna Saraf](https://twitter.com/pradumna_saraf) for his contribution to this guide.
1726
18-
* Containerize and run a C++ application
19-
* Set up a local environment to develop a C++ application using containers
20-
* Configure a CI/CD pipeline for a containerized C++ application using GitHub Actions
21-
* Deploy your containerized application locally to Kubernetes to test and debug your deployment
27+
- Containerize and run a C++ application
28+
- Set up a local environment to develop a C++ application using containers
29+
- Configure a CI/CD pipeline for a containerized C++ application using GitHub Actions
30+
- Deploy your containerized application locally to Kubernetes to test and debug your deployment
2231

2332
After completing the C++ getting started modules, you should be able to containerize your own C++ application based on the examples and instructions provided in this guide.
2433

2534
Start by containerizing an existing C++ application.
26-
27-
{{< button text="Containerize a C++ app" url="containerize.md" >}}

content/guides/language/cpp/configure-ci-cd.md renamed to content/guides/cpp/configure-ci-cd.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ weight: 40
55
keywords: ci/cd, github actions, c++, shiny
66
description: Learn how to configure CI/CD using GitHub Actions for your C++ application.
77
aliases:
8-
- /language/cpp/configure-ci-cd/
8+
- /language/cpp/configure-ci-cd/
9+
- /guides/language/cpp/configure-ci-cd/
910
---
1011

1112
## Prerequisites
@@ -69,27 +70,24 @@ to Docker Hub.
6970

7071
```yaml
7172
name: ci
72-
73+
7374
on:
7475
push:
7576
branches:
7677
- main
77-
78+
7879
jobs:
7980
build:
8081
runs-on: ubuntu-latest
8182
steps:
82-
-
83-
name: Login to Docker Hub
83+
- name: Login to Docker Hub
8484
uses: docker/login-action@v3
8585
with:
8686
username: ${{ vars.DOCKER_USERNAME }}
8787
password: ${{ secrets.DOCKERHUB_TOKEN }}
88-
-
89-
name: Set up Docker Buildx
88+
- name: Set up Docker Buildx
9089
uses: docker/setup-buildx-action@v3
91-
-
92-
name: Build and push
90+
- name: Build and push
9391
uses: docker/build-push-action@v6
9492
with:
9593
platforms: linux/amd64,linux/arm64
@@ -123,11 +121,10 @@ Save the workflow file and run the job.
123121
In this section, you learned how to set up a GitHub Actions workflow for your C++ application.
124122

125123
Related information:
126-
- [Introduction to GitHub Actions](/manuals/build/ci/github-actions/_index.md)
127-
- [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions)
124+
125+
- [Introduction to GitHub Actions](/manuals/build/ci/github-actions/_index.md)
126+
- [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions)
128127

129128
## Next steps
130129

131130
Next, learn how you can locally test and debug your workloads on Kubernetes before deploying.
132-
133-
{{< button text="Test your deployment" url="./deploy.md" >}}

content/guides/language/cpp/containerize.md renamed to content/guides/cpp/containerize.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ weight: 10
55
keywords: C++, containerize, initialize
66
description: Learn how to containerize a C++ application.
77
aliases:
8-
- /language/cpp/containerize/
8+
- /language/cpp/containerize/
9+
- /guides/language/cpp/containerize/
910
---
1011

1112
## Prerequisites
1213

13-
* You have a [Git client](https://git-scm.com/downloads). The examples in this section use a command-line based Git client, but you can use any client.
14+
- You have a [Git client](https://git-scm.com/downloads). The examples in this section use a command-line based Git client, but you can use any client.
1415

1516
## Overview
1617

@@ -38,9 +39,10 @@ directory.
3839
```
3940

4041
To learn more about the files in the repository, see the following:
41-
- [Dockerfile](/reference/dockerfile.md)
42-
- [.dockerignore](/reference/dockerfile.md#dockerignore-file)
43-
- [compose.yml](/reference/compose-file/_index.md)
42+
43+
- [Dockerfile](/reference/dockerfile.md)
44+
- [.dockerignore](/reference/dockerfile.md#dockerignore-file)
45+
- [compose.yml](/reference/compose-file/_index.md)
4446

4547
## Run the application
4648

@@ -67,7 +69,6 @@ $ docker compose up --build -d
6769

6870
Open a browser and view the application at [http://localhost:8080](http://localhost:8080).
6971

70-
7172
In the terminal, run the following command to stop the application.
7273

7374
```console
@@ -83,11 +84,10 @@ In this section, you learned how you can containerize and run your C++
8384
application using Docker.
8485

8586
Related information:
86-
- [Docker Compose overview](/manuals/compose/_index.md)
87+
88+
- [Docker Compose overview](/manuals/compose/_index.md)
8789

8890
## Next steps
8991

9092
In the next section, you'll learn how you can develop your application using
9193
containers.
92-
93-
{{< button text="Develop your application" url="develop.md" >}}

content/guides/language/cpp/deploy.md renamed to content/guides/cpp/deploy.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ weight: 50
55
keywords: deploy, kubernetes, c++
66
description: Learn how to develop locally using Kubernetes
77
aliases:
8-
- /language/cpp/deploy/
8+
- /language/cpp/deploy/
9+
- /guides/language/cpp/deploy/
910
---
1011

1112
## Prerequisites
@@ -42,9 +43,9 @@ spec:
4243
service: ok-api
4344
spec:
4445
containers:
45-
- name: ok-api-service
46-
image: DOCKER_USERNAME/REPO_NAME
47-
imagePullPolicy: Always
46+
- name: ok-api-service
47+
image: DOCKER_USERNAME/REPO_NAME
48+
imagePullPolicy: Always
4849
---
4950
apiVersion: v1
5051
kind: Service
@@ -56,21 +57,21 @@ spec:
5657
selector:
5758
service: ok-api
5859
ports:
59-
- port: 8080
60-
targetPort: 8080
61-
nodePort: 30001
60+
- port: 8080
61+
targetPort: 8080
62+
nodePort: 30001
6263
```
6364
6465
In this Kubernetes YAML file, there are two objects, separated by the `---`:
6566

66-
- A Deployment, describing a scalable group of identical pods. In this case,
67-
you'll get just one replica, or copy of your pod. That pod, which is
68-
described under `template`, has just one container in it. The
69-
container is created from the image built by GitHub Actions in [Configure CI/CD for
70-
your C++ application](configure-ci-cd.md).
71-
- A NodePort service, which will route traffic from port 30001 on your host to
72-
port 8080 inside the pods it routes to, allowing you to reach your app
73-
from the network.
67+
- A Deployment, describing a scalable group of identical pods. In this case,
68+
you'll get just one replica, or copy of your pod. That pod, which is
69+
described under `template`, has just one container in it. The
70+
container is created from the image built by GitHub Actions in [Configure CI/CD for
71+
your C++ application](configure-ci-cd.md).
72+
- A NodePort service, which will route traffic from port 30001 on your host to
73+
port 8080 inside the pods it routes to, allowing you to reach your app
74+
from the network.
7475

7576
To learn more about Kubernetes objects, see the [Kubernetes documentation](https://kubernetes.io/docs/home/).
7677

@@ -133,9 +134,10 @@ To learn more about Kubernetes objects, see the [Kubernetes documentation](https
133134

134135
## Summary
135136

136-
In this section, you learned how to use Docker Desktop to deploy your C++ application to a fully-featured Kubernetes environment on your development machine.
137+
In this section, you learned how to use Docker Desktop to deploy your C++ application to a fully-featured Kubernetes environment on your development machine.
137138

138139
Related information:
139-
- [Kubernetes documentation](https://kubernetes.io/docs/home/)
140-
- [Deploy on Kubernetes with Docker Desktop](/manuals/desktop/kubernetes.md)
141-
- [Swarm mode overview](/manuals/engine/swarm/_index.md)
140+
141+
- [Kubernetes documentation](https://kubernetes.io/docs/home/)
142+
- [Deploy on Kubernetes with Docker Desktop](/manuals/desktop/kubernetes.md)
143+
- [Swarm mode overview](/manuals/engine/swarm/_index.md)

content/guides/language/cpp/develop.md renamed to content/guides/cpp/develop.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ weight: 20
55
keywords: C++, local, development
66
description: Learn how to develop your C++ application locally.
77
aliases:
8-
- /language/cpp/develop/
8+
- /language/cpp/develop/
9+
- /guides/language/cpp/develop/
910
---
1011

1112
## Prerequisites
@@ -66,12 +67,11 @@ Press `ctrl+c` in the terminal to stop your application.
6667
In this section, you also learned how to use Compose Watch to automatically rebuild and run your container when you update your code.
6768

6869
Related information:
69-
- [Compose file reference](/reference/compose-file/)
70-
- [Compose file watch](/manuals/compose/how-tos/file-watch.md)
71-
- [Multi-stage builds](/manuals/build/building/multi-stage.md)
70+
71+
- [Compose file reference](/reference/compose-file/)
72+
- [Compose file watch](/manuals/compose/how-tos/file-watch.md)
73+
- [Multi-stage builds](/manuals/build/building/multi-stage.md)
7274

7375
## Next steps
7476

7577
In the next section, you'll take a look at how to set up a CI/CD pipeline using GitHub Actions.
76-
77-
{{< button text="Configure CI/CD" url="configure-ci-cd.md" >}}

0 commit comments

Comments
 (0)