From 9a81cbfd7bacdeae42ffad958b2d683d58364987 Mon Sep 17 00:00:00 2001 From: Anastasia Alexadrova Date: Mon, 25 Nov 2024 10:58:27 +0100 Subject: [PATCH] Improved wording --- docs/install/docker.md | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/docs/install/docker.md b/docs/install/docker.md index 1b405802..b76ac2f5 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -4,31 +4,29 @@ Docker images of Percona Backup for MongoDB are hosted publicly on [Docker Hub : For more information about using Docker, see the [Docker Docs :octicons-link-external-16:](https://docs.docker.com/). -!!! note +Make sure that you are using the latest version of Docker. The ones provided via apt and yum may be outdated and cause errors. - Make sure that you are using the latest version of Docker. The ones provided via apt and yum may be outdated and cause errors. - - By default, Docker will pull the image from Docker Hub if it is not available locally. +By default, Docker will pull the image from Docker Hub if it is not available locally. ## Prerequisites * You need to deploy MongoDB or Percona Server for MongoDB. See [what MongoDB deployments are supported](../details/deployments.md). * [Create the pbm user](initial-setup.md#create-the-pbm-user) in your deployment. You will need this user credentials to start Percona Backup for MongoDB container. -* For physical backups, make sure to use a container that includes both the mongod binary as well as the PBM files. Here is an example Dockerfile: +* For physical backups, make sure to use a container that includes both the `mongod` binary as well as the PBM files. Here is an example Dockerfile: - ```{.bash data-prompt="$"} - FROM percona/percona-server-mongodb:latest AS mdb - FROM percona/percona-backup-mongodb:latest AS pbm + ```{.bash data-prompt="$"} + FROM percona/percona-server-mongodb:latest AS mdb + FROM percona/percona-backup-mongodb:latest AS pbm - FROM oraclelinux:8 + FROM oraclelinux:8 - RUN mkdir -p /data/db /data/configdb + RUN mkdir -p /data/db /data/configdb - COPY --from=mdb /usr/bin/mongod /usr/bin/ - COPY --from=pbm /usr/bin/pbm* /usr/bin/ - ``` + COPY --from=mdb /usr/bin/mongod /usr/bin/ + COPY --from=pbm /usr/bin/pbm* /usr/bin/ + ``` -* If using a dedicated container for PBM, it should also have read-write access to MongoDB data volume and run under the same user id as the MongoDB container. +* If you are using a dedicated container for PBM, it should also have read-write access to MongoDB data volume and you should run it under the same user ID as the MongoDB container. ## Start Percona Backup for MongoDB