Open chuangtim opened 5 years ago
Hi @chuangtim, try running this as the user that owns /data/mongobackup (see --user flag).
I believe /data/mongobackup is owned as a different UID than the tool expects:
docker run -it --user=$(id -u)
-v "/data/mongobackup/conf:/conf:Z"
-v "/data/mongobackup/data:/var/lib/mongodb-consistent-backup:Z"
-v "/data/mongobackup/logs:/var/log/mongodb-consistent-backup:Z"
perconalab/mongodb_consistent_backup:latest --config=/conf/mongodb-consistent-backup.conf
You could also 'chown' /data/mongobackup to match the default UID the docker container runs as (probably 1000).
Hi.I install it from docker hub and execute the following command with root
The error is as follows:
Thanks chuangtim