[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBottom - 200) { container.scrollTop = itemTop - (container.clientHeight / 2 - item.offsetHeight / 2); } } })" class="md:h-[calc(100vh-64px)] fixed md:sticky top-0 md:top-16 z-40 hidden h-screen flex-none overflow-y-auto overflow-x-hidden bg-background-light dark:bg-gray-dark-100 w-full md:z-auto md:block md:w-[300px]" :class="{ 'hidden': ! $store.showSidebar }">

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.

Copilot vulnerabilities report

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.