Home Explore Blog CI



docker

content/reference/api/extensions-sdk/DockerCommand.md
747cc68821beb39bb70c017e07904db0e723ede0fe167ce50000000300000170
---
title: "Interface: DockerCommand"
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
aliases:
 - /desktop/extensions-sdk/dev/api/reference/interfaces/DockerCommand/
 - /extensions/extensions-sdk/dev/api/reference/interfaces/DockerCommand/
---

**`Since`**

0.2.0

## Properties

### exec

• **exec**: [`Exec`](Exec.md)

Chunks
18556c32 (1st chunk of `content/reference/api/extensions-sdk/DockerCommand.md`)
Title: DockerCommand Interface - exec Property
Summary
This section of the Docker extension API reference describes the `exec` property of the `DockerCommand` interface. Introduced in version 0.2.0 of the API, the `DockerCommand` interface provides access to functionalities related to executing commands within Docker containers. The `exec` property, specifically, is of type `Exec`, suggesting it offers methods or configurations related to the `docker exec` command, allowing extensions to run processes inside a running container. Further details on the `Exec` type can be found in its dedicated documentation (Exec.md). This feature enables Docker extensions to interact with and manage containers more effectively by running commands directly within them, facilitating tasks such as debugging, monitoring, or configuration changes.