> For the complete documentation index, see [llms.txt](https://docs.zama.org/concrete-ml/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zama.org/concrete-ml/0.2/developper-how-to/docker.md).

# Set Up Docker

## Setting up Docker and X forwarding

Before you start this section, go ahead and install Docker. You can follow [this](https://docs.docker.com/engine/install/) official guide if you require assistance.

X forwarding means redirecting the display to your host machine screen so that the Docker container can display things on your screen (otherwise you would only get CLI/terminal interface to your container).

### Linux

```shell
xhost +localhost
```

### MacOS.

To be able to use X forwarding on macOS:

* Install XQuartz
* Open XQuartz.app and make sure that `authorize network connections` is set in the application parameters (currently in the Security settings)
* Open a new terminal within XQuartz.app and type:

```shell
xhost +127.0.0.1
```

Now, the X server should be all set in Docker (in the regular terminal).

### Windows

Install [Xming](https://sourceforge.net/projects/xming/) and use Xlaunch:

* Multiple Windows, Display number: 0
* `Start no client`
* **IMPORTANT**: Check `No Access Control`
* You can save this configuration to relaunch easily, then click finish.

## Building the image

Once you have access to this repository and the dev environment is installed on your host OS (via `make setup_env` once [you followed the steps here](broken://pages/POGOeOLeugy0tGUH70Fg)), you should be able to launch the commands to build the dev Docker image with `make docker_build`.

Once you do that, you can get inside the Docker environment using the following command:

```shell
make docker_start

# or build and start at the same time
make docker_build_and_start
# or equivalently but shorter
make docker_bas
```

After you finish your work, you can leave Docker by using the `exit` command or by pressing `CTRL + D`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zama.org/concrete-ml/0.2/developper-how-to/docker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
