Skip to content

Commit 42518d9

Browse files
committed
copilot: revamp example prompts
Signed-off-by: David Karlsson <[email protected]>
1 parent f86b90f commit 42518d9

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

content/manuals/copilot/examples.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,37 @@ The Docker for GitHub Copilot extension is an [early access](/release-lifecycle#
1313

1414
Here are some examples of the types of questions you can ask the Docker agent:
1515

16-
### Ask general Docker questions
16+
## Ask general Docker questions
1717

1818
You can ask general question about Docker. For example:
1919

2020
- `@docker what is a Dockerfile?`
2121
- `@docker how do I build a Docker image?`
2222
- `@docker how do I run a Docker container?`
2323

24-
### Ask questions about your project
24+
## Get help containerizing your project
2525

26-
You can ask questions about your project, such as:
26+
You can ask the agent to help you containerize your existing project:
2727

28-
- `@docker what is the best way to Dockerize this project`
29-
- `@docker can you help me find vulnerabilities in my project?`
28+
- `@docker can you help create a compose file for this project?`
29+
- `@docker can you create a Dockerfile for this project?`
3030

3131
The Docker agent will analyze your project, generate the necessary files, and,
32-
if applicable, offer to raise a pull request with the necessary Docker assets.
32+
if applicable, offer to [raise a pull request](#performing-actions-on-your-behalf)
33+
with the necessary Docker assets.
34+
35+
## Analyze a project for vulnerabilities
36+
37+
The agent can help you improve your security posture with [Docker
38+
Scout](/manuals/scout/_index.md):
39+
40+
- `@docker can you help me find vulnerabilities in my project?`
41+
- `@docker does my project contain any insecure dependencies?`
42+
43+
The agent will run use Docker Scout to analyze your project's dependencies, and
44+
report whether you're vulnerable to any [known CVEs](/manuals/scout/deep-dive/advisory-db-sources.md).
45+
46+
![Copilot vulnerabilities report](images/copilot-vuln-report.png?w=500px&border=1)
3347

3448
## Performing actions on your behalf
3549

@@ -39,9 +53,6 @@ operation. You can always roll back or back out of the changes.
3953

4054
![Copilot action prompt](images/copilot-action-prompt.png?w=400px)
4155

42-
In the event that the agent encounters an error, for example during PR
43-
creation, it handles timeouts and lack of responses gracefully.
44-
4556
## Feedback
4657

4758
For issues or feedback, visit the [GitHub feedback repository](https://github.com/docker/copilot-issues).
71.9 KB
Loading

0 commit comments

Comments
 (0)