Skip to content

Commit 4349b25

Browse files
authored
Merge pull request #21107 from dvdksn/copilot-restructure
copilot: restructure content, editorial improvements
2 parents 2773210 + 8029815 commit 4349b25

File tree

11 files changed

+245
-199
lines changed

11 files changed

+245
-199
lines changed

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ area/accounts:
159159
- any-glob-to-any-file:
160160
- content/manuals/accounts/**
161161

162+
area/copilot:
163+
- changed-files:
164+
- any-glob-to-any-file:
165+
- content/manuals/copilot/**
166+
162167
hugo:
163168
- changed-files:
164169
- any-glob-to-any-file:

content/manuals/copilot/_index.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: Docker for GitHub Copilot
3+
params:
4+
sidebar:
5+
badge:
6+
color: violet
7+
text: EA
8+
weight: 100
9+
description: |
10+
Learn how to streamline Docker-related tasks with the Docker for GitHub
11+
Copilot extension. This integration helps you generate Docker assets, analyze
12+
vulnerabilities, and automate containerization through GitHub Copilot Chat in
13+
various development environments.
14+
keywords: Docker, GitHub Copilot, extension, Visual Studio Code, chat, ai, containerization
15+
---
16+
17+
{{% restricted title="Early Access" %}}
18+
The Docker for GitHub Copilot extension is an [early access](/release-lifecycle#early-access-ea) product.
19+
{{% /restricted %}}
20+
21+
The [Docker for GitHub Copilot](https://github.com/marketplace/docker-for-github-copilot)
22+
extension integrates Docker's capabilities with GitHub Copilot, providing
23+
assistance with containerizing applications, generating Docker assets, and
24+
analyzing project vulnerabilities. This extension helps you streamline
25+
Docker-related tasks wherever GitHub Copilot Chat is available.
26+
27+
## Key features
28+
29+
Key features of the Docker for GitHub Copilot extension include:
30+
31+
- Ask questions and receive responses about containerization in any context
32+
where GitHub Copilot Chat is available, such as on GitHub.com and in Visual Studio Code.
33+
- Automatically generate Dockerfiles, Docker Compose files, and `.dockerignore`
34+
files for a project.
35+
- Open pull requests with generated Docker assets directly from the chat
36+
interface.
37+
- Get summaries of project vulnerabilities from [Docker
38+
Scout](/manuals/scout/_index.md) and receive next steps via the CLI.
39+
40+
## Data Privacy
41+
42+
The Docker agent is trained exclusively on Docker's documentation and tools to
43+
assist with containerization and related tasks. It does not have access to your
44+
project's data outside the context of the questions you ask.
45+
46+
When using the Docker Extension for GitHub Copilot, GitHub Copilot may include
47+
a reference to the currently open file in its request if authorized by the
48+
user. The Docker agent can read the file to provide context-aware responses.
49+
50+
If the agent is requested to check for vulnerabilities or generate
51+
Docker-related assets, it will clone the referenced repository into in-memory
52+
storage to perform the necessary actions.
53+
54+
Source code or project metadata is never persistently stored. Questions and
55+
answers are retained for analytics and troubleshooting. Data processed by the
56+
Docker agent is never shared with third parties.
57+
58+
## Supported languages
59+
60+
The Docker Extension for GitHub Copilot supports the following programming
61+
languages for tasks involving containerizing a project from scratch:
62+
63+
- Go
64+
- Java
65+
- JavaScript
66+
- Python
67+
- Rust
68+
- TypeScript
-12 KB
Binary file not shown.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Example prompts for the Docker agent
3+
linkTitle: Example prompts
4+
description: |
5+
Discover example prompts to interact with the Docker agent and learn how to
6+
automate tasks like Dockerizing projects or opening pull requests.
7+
weight: 30
8+
---
9+
10+
{{% restricted title="Early Access" %}}
11+
The Docker for GitHub Copilot extension is an [early access](/release-lifecycle#early-access-ea) product.
12+
{{% /restricted %}}
13+
14+
## Use cases
15+
16+
Here are some examples of the types of questions you can ask the Docker agent:
17+
18+
### Ask general Docker questions
19+
20+
You can ask general question about Docker. For example:
21+
22+
- `@docker what is a Dockerfile?`
23+
- `@docker how do I build a Docker image?`
24+
- `@docker how do I run a Docker container?`
25+
- `@docker what does 'docker buildx imagetools inspect' do?`
26+
27+
### Get help containerizing your project
28+
29+
You can ask the agent to help you containerize your existing project:
30+
31+
- `@docker can you help create a compose file for this project?`
32+
- `@docker can you create a Dockerfile for this project?`
33+
34+
#### Opening pull requests
35+
36+
The Docker agent will analyze your project, generate the necessary files, and,
37+
if applicable, offer to raise a pull request with the necessary Docker assets.
38+
39+
Automatically opening pull requests against your repositories is only available
40+
when the agent generates new Docker assets.
41+
42+
### Analyze a project for vulnerabilities
43+
44+
The agent can help you improve your security posture with [Docker
45+
Scout](/manuals/scout/_index.md):
46+
47+
- `@docker can you help me find vulnerabilities in my project?`
48+
- `@docker does my project contain any insecure dependencies?`
49+
50+
The agent will run use Docker Scout to analyze your project's dependencies, and
51+
report whether you're vulnerable to any [known CVEs](/manuals/scout/deep-dive/advisory-db-sources.md).
52+
53+
![Copilot vulnerabilities report](images/copilot-vuln-report.png?w=500px&border=1)
54+
55+
## Limitations
56+
57+
- The agent is currently not able to access specific files in your repository,
58+
such as the currently-opened file in your editor, or if you pass a file
59+
reference with your message in the chat message.
60+
61+
## Feedback
62+
63+
For issues or feedback, visit the [GitHub feedback repository](https://github.com/docker/copilot-issues).
71.9 KB
Loading

content/manuals/copilot/index.md

Lines changed: 0 additions & 197 deletions
This file was deleted.

content/manuals/copilot/install.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Install the extension for your organization
3+
linkTitle: Install
4+
description: |
5+
Learn how to install the Docker for GitHub Copilot extension for your
6+
organization and manage relevant policies to enable seamless integration.
7+
weight: 10
8+
---
9+
10+
{{% restricted title="Early Access" %}}
11+
The Docker for GitHub Copilot extension is an [early access](/release-lifecycle#early-access-ea) product.
12+
{{% /restricted %}}
13+
14+
To use the Docker for GitHub copilot extension, you first need to
15+
[install](#install) the extension for your organization, and
16+
[manage](#manage-policies) policies for Copilot in your organization.
17+
18+
## Prerequisites
19+
20+
Before you start, ensure that you're signed in to your GitHub account on
21+
GitHub.com.
22+
23+
## Install
24+
25+
To install the Docker for GitHub Copilot extension for your GitHub organization:
26+
27+
1. Go to the [Docker for GitHub Copilot](https://github.com/marketplace/docker-for-github-copilot)
28+
app in the GitHub Marketplace.
29+
30+
2. Select the **Add** button at the top of the page.
31+
32+
3. Under **Pricing and setup**, select the organization that you want to
33+
install the extension for and select **Install it for free**.
34+
35+
4. Select the **Complete order and begin installation** button.
36+
37+
5. Select the repositories where you want to use the Docker Extension for
38+
GitHub Copilot and finish with **Install**.
39+
40+
## Manage policies
41+
42+
If you're enabling the extension for a GitHub organization, you also
43+
need to enable the Copilot Extensions policy. For instructions, see
44+
[Setting a policy for GitHub Copilot Extensions in your organization](https://docs.github.com/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#setting-a-policy-for-github-copilot-extensions-in-your-organization).

0 commit comments

Comments
 (0)