> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/open-source/use-harness-open-source/pipelines-1/reference/container.md).

# Container

Container configures step execution inside a container.

## Properties

* **image** - *string*\
  The container image
* **credentials** - *Credentials*\
  The registry authentication credentials
* **pull** - *string*\
  The container pull options

  **enum values:**

  * `sh`
  * `bash`
  * `powershell`
  * `pwsh`
* **entrypoint** - *string*\
  Override the container entrypoint
* **args** - *\[]string*\
  The container args
* **dns** - *string, \[]string*\
  The custom dns servers
* **dns\_search** - *string, \[]string*\
  The custom dns search domains
* **extra\_hosts** - *string, \[]string*\
  The hostname mappings.
* **network** - *string*\
  The container is attached to the named docker network.
* **network\_mode** - *string*\
  The container network mode. `bridge`, `host`, `none`
* **privileged** - *boolean*\
  The container is run with escalated privileges.
* **user** - *string*\
  Override the container user.
