Docker Community Forums

Share and learn in the Docker community.

Typo in Docker userguide on volumes?


(Garthoid) #1

In the section “Backup, restore, or migrate data volumes” on https://docs.docker.com/engine/userguide/dockervolumes there is a restore example using:

docker run -v /dbdata --name dbdata2 ubuntu /bin/bash

and then

docker run --volumes-from dbstore2 -v $(pwd):/backup ubuntu bash -c “cd /dbdata && tar xvf /backup/backup.tar”

I would have expected the --volumes-from to be dbdata2 not dbstore2.

Or am I missing something?