From d2d6c724b64392d5cd4fb46f20dd6ab14fdd234b Mon Sep 17 00:00:00 2001 From: Jorge Sorondo <87992063+jisorondo@users.noreply.github.com> Date: Mon, 11 Sep 2023 09:52:14 -0500 Subject: [PATCH] Update agents.mdx Adding -d flag when launching docker container to run container in detached mode(background) to avoid the container from exiting when disconnecting from the shell. --- website/docs/cloud-docs/agents/agents.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/cloud-docs/agents/agents.mdx b/website/docs/cloud-docs/agents/agents.mdx index cf7e2c7..0240be9 100644 --- a/website/docs/cloud-docs/agents/agents.mdx +++ b/website/docs/cloud-docs/agents/agents.mdx @@ -61,7 +61,7 @@ Alternatively, you can use our official agent Docker container to run the agent. ``` docker pull hashicorp/tfc-agent:latest -docker run -e TFC_AGENT_TOKEN=your-token -e TFC_AGENT_NAME=your-agent-name hashicorp/tfc-agent +docker run -d -e TFC_AGENT_TOKEN=your-token -e TFC_AGENT_NAME=your-agent-name hashicorp/tfc-agent ``` This Docker image executes the `tfc-agent` process as the non-root `tfc-agent` user. For some workflows, such as workflows requiring the ability to install software using `apt-get` during `local-exec` scripts, you may need to build a customized version of the agent Docker image for your internal use.