mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixing race condition on private key backup how-to
Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
parent
54b50479af
commit
fbb268c12a
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,7 @@ The Docker client stores the keys in the `~/.docker/trust/private` directory.
|
|||
Before backing them up, you should `tar` them into an archive:
|
||||
|
||||
```bash
|
||||
$ tar -zcvf private_keys_backup.tar.gz ~/.docker/trust/private
|
||||
$ chmod 600 private_keys_backup.tar.gz
|
||||
$ umask 077; tar -zcvf private_keys_backup.tar.gz ~/.docker/trust/private; umask 022
|
||||
```
|
||||
|
||||
## Lost keys
|
||||
|
|
Loading…
Add table
Reference in a new issue