# Getting a command prompt on a container

On Linux, if you need a command prompt for a running container, such as a Pentaho Server or Carte container, you can use the `docker exec` command with the *containerID* listed via the `docker container ls` command, as shown in the following example:

`docker exec -it *containerId* bash`

To get into a stopped PDI container after a command has been executed, use the docker compose command with the bash argument, as shown in the following example:

`docker compose run pdi bash`

The `pdi` reference already is defined in your `docker-compose.yaml` file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/install/9.3-install/pentaho-installation-overview-cp/docker-container-deployment-of-pentaho-installation-cp/docker-container-deployment-process-docker-deployment/starting-or-stopping-your-docker-container-docker-deployment/getting-a-command-prompt-on-a-container-docker-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
