Skip to content

Commit

Permalink
[docs] update quickstart.md to make it work on ARM64 Docker (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkov authored Apr 4, 2024
1 parent 9b40cf4 commit 294171c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions ydb/docs/en/core/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,23 @@ Normally, {{ ydb-short-name }} stores data on multiple SSD/NVMe or HDD raw disk
mkdir ydb_data
mkdir ydb_certs
```
2. Pull the current version of the Docker image:
```bash
docker pull {{ ydb_local_docker_image }}:{{ ydb_local_docker_image_tag }}
```
3. Run the Docker container:
2. Run the Docker container:
```bash
docker run -d --rm --name ydb-local -h localhost \
--platform linux/amd64 \
-p 2135:2135 -p 2136:2136 -p 8765:8765 \
-v $(pwd)/ydb_certs:/ydb_certs -v $(pwd)/ydb_data:/ydb_data \
-e GRPC_TLS_PORT=2135 -e GRPC_PORT=2136 -e MON_PORT=8765 \
-e YDB_USE_IN_MEMORY_PDISKS=true \
{{ ydb_local_docker_image}}:{{ ydb_local_docker_image_tag }}
```
If the container starts successfully, you'll see the container's ID. The container might take a few minutes to initialize. The database will not be available until container initialization is complete.
The `YDB_USE_IN_MEMORY_PDISKS` setting makes all data volatile, stored only in RAM. Currently, data persistence by turning it off is supported only on x86_64 processors.
{% endlist %}
Expand Down
11 changes: 5 additions & 6 deletions ydb/docs/ru/core/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,23 @@
mkdir ydb_data
mkdir ydb_certs
```
2. Загрузите текущую версию Docker образа:

```bash
docker pull {{ ydb_local_docker_image }}:{{ ydb_local_docker_image_tag }}
```

3. Запустите Docker контейнер:
2. Запустите Docker контейнер:

```bash
docker run -d --rm --name ydb-local -h localhost \
--platform linux/amd64 \
-p 2135:2135 -p 2136:2136 -p 8765:8765 \
-v $(pwd)/ydb_certs:/ydb_certs -v $(pwd)/ydb_data:/ydb_data \
-e GRPC_TLS_PORT=2135 -e GRPC_PORT=2136 -e MON_PORT=8765 \
-e YDB_USE_IN_MEMORY_PDISKS=true \
{{ ydb_local_docker_image}}:{{ ydb_local_docker_image_tag }}
```

Если контейнер успешно запустился, вы увидите его идентификатор. Контейнеру может потребоваться несколько минут для инициализации. База данных будет недоступна до окончания инициализации.

Настройка `YDB_USE_IN_MEMORY_PDISKS` делает все данные волатильными, хранящимися только в оперативной памяти. В настоящее время сохранение данных путем её отключения поддерживается только на x86_64 процессорах.

{% endlist %}


Expand Down

0 comments on commit 294171c

Please sign in to comment.