Skip to content

Commit

Permalink
Update docker.md (#231)
Browse files Browse the repository at this point in the history
Update docker.md

Clarify usage in docker
  • Loading branch information
igroene authored Nov 25, 2024
1 parent 2398614 commit dad3860
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions docs/install/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +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.
* [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:

```{.bash data-prompt="$"}
FROM percona/percona-server-mongodb:latest AS mdb
FROM percona/percona-backup-mongodb:latest AS pbm

FROM oraclelinux:8

RUN mkdir -p /data/db /data/configdb

COPY --from=mdb /usr/bin/mongod /usr/bin/
COPY --from=pbm /usr/bin/pbm* /usr/bin/
```

* 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

Expand Down Expand Up @@ -85,4 +98,4 @@ In the same way you can run other pbm commands. Find the full list of available

## Next steps

[List backups :material-arrow-right:](../usage/list-backup.md){.md-button}
[List backups :material-arrow-right:](../usage/list-backup.md){.md-button}

0 comments on commit dad3860

Please sign in to comment.