# ContainerResource

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerResource.cs)
- Inherits: [Resource](/reference/api/csharp/aspire.hosting/resource.md)
- Implements: [IComputeResource](/reference/api/csharp/aspire.hosting/icomputeresource.md), [IResource](/reference/api/csharp/aspire.hosting/iresource.md), [IResourceWithArgs](/reference/api/csharp/aspire.hosting/iresourcewithargs.md), [IResourceWithEndpoints](/reference/api/csharp/aspire.hosting/iresourcewithendpoints.md), [IResourceWithEnvironment](/reference/api/csharp/aspire.hosting/iresourcewithenvironment.md), [IResourceWithProbes](/reference/api/csharp/aspire.hosting/iresourcewithprobes.md), [IResourceWithWaitSupport](/reference/api/csharp/aspire.hosting/iresourcewithwaitsupport.md)

A resource that represents a specified container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class ContainerResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IComputeResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithArgs,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IResourceWithEnvironment,
      Aspire.Hosting.ApplicationModel.IResourceWithProbes,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport
{
    // ...
}
```

## Constructors

- [ContainerResource(string, string?)](/reference/api/csharp/aspire.hosting/containerresource/constructors.md#constructor-string-string) -- A resource that represents a specified container.

## Properties

- [Entrypoint](/reference/api/csharp/aspire.hosting/containerresource/properties.md#entrypoint) : `string?` `get; set` -- The container Entrypoint.
- [ShellExecution](/reference/api/csharp/aspire.hosting/containerresource/properties.md#shellexecution) : `bool?` `get; set` `experimental` -- Should any custom arguments be wrapped in -c ">values<"?
