Example prompts for the Docker agent
Early Access
The Docker for GitHub Copilot extension is an early access product.
Use cases
Here are some examples of the types of questions you can ask the Docker agent:
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
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?
Opening pull requests
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:
@docker can you help me find vulnerabilities in my project?
@docker does my project contain any insecure dependencies?
The agent will run use Docker Scout to analyze your project's dependencies, and report whether you're vulnerable to any known CVEs.
Limitations
- The agent is currently not able to access specific files in your repository, such as the currently-opened file in your editor, or if you pass a file reference with your message in the chat message.
Feedback
For issues or feedback, visit the GitHub feedback repository.