> For the complete documentation index, see [llms.txt](https://guide.fariaedu.com/professional-learning-community-mbpy/6VBx07Zj330EYGI5zHno/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.fariaedu.com/professional-learning-community-mbpy/6VBx07Zj330EYGI5zHno/installation/further-instructions-with-docker.md).

# Further instructions with Docker

The instructions in Getting Started and Updating with Docker are intended to provide an environment with the shortest path to being able to get started with the application. Installing with that method has a drawback, in that once the container is exited, any data written to disk is lost.

In order to set up an environment where such operations are available, please see the below.

## Enable persistence across executions

Using the docker concept of volumes, any data imported into mbpy or written to disk during an operation will persist across executions.&#x20;

In the instructions, following the "From the host", instead of this:

```
docker run -it --rm mbpy_mbpycli
```

Use the volume option:

```
docker run -it -v .:/docker --rm mbpy_mbpycli
```

This adds a `-v` ("volume") option, telling docker to take the host's current directory ("`.`") and bind it ("`:`) to the container directory (`/docker`). Please note, however, that the use of "current directory" assumes that you are in the same directory that you cloned into.&#x20;

A more general-purpose command, then, which you can execute no matter the current working directory, would be to replace the "`.`" with the full path to the mbpy folder. If you followed the instructions for getting started, it's just this:

```
docker run -it -v ~/src/mbpy:/docker --rm mbpy_mbpycli
```

Great! So now we can add whatever commands onto the end. However, that is a lot of typing, is there a way to just type `mbpy` from our host terminal? Yes, yes there is, which is the topic of the next section:

## Use an alias on the host

The docker container itself already has an `mbpy` alias set up so that typing it when connected to the shell in the container executes the application.&#x20;


---

# 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 dynamically by asking a question.

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

```
GET https://guide.fariaedu.com/professional-learning-community-mbpy/6VBx07Zj330EYGI5zHno/installation/further-instructions-with-docker.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
