copilot: restructure examples section

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-11-06 16:46:46 +01:00
parent f3a1142f52
commit 51acb80f1f
1 changed files with 13 additions and 6 deletions

View File

@ -11,28 +11,35 @@ weight: 30
The Docker for GitHub Copilot extension is an [early access](/release-lifecycle#early-access-ea) product.
{{% /restricted %}}
## Use cases
Here are some examples of the types of questions you can ask the Docker agent:
## Ask general Docker questions
### Ask general Docker questions
You can ask general question about Docker. For example:
- `@docker what is a Dockerfile?`
- `@docker how do I build a Docker image?`
- `@docker how do I run a Docker container?`
- `@docker what does 'docker buildx imagetools inspect' do?`
## Get help containerizing your project
### Get help containerizing your project
You can ask the agent to help you containerize your existing project:
- `@docker can you help create a compose file for this project?`
- `@docker can you create a Dockerfile for this project?`
The Docker agent will analyze your project, generate the necessary files, and,
if applicable, offer to [raise a pull request](#performing-actions-on-your-behalf)
with the necessary Docker assets.
#### Opening pull requests
## Analyze a project for vulnerabilities
The Docker agent will analyze your project, generate the necessary files, and,
if applicable, offer to raise a pull request with the necessary Docker assets.
Automatically opening pull requests against your repositories is only available
when the agent generates new Docker assets.
### Analyze a project for vulnerabilities
The agent can help you improve your security posture with [Docker
Scout](/manuals/scout/_index.md):