فهرست منبع

Fixing race condition on private key backup how-to

Signed-off-by: Diogo Monica <diogo@docker.com>
Diogo Monica 10 سال پیش
والد
کامیت
fbb268c12a
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      docs/security/trust/trust_key_mng.md

+ 1 - 2
docs/security/trust/trust_key_mng.md

@@ -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:
 Before backing them up, you should `tar` them into an archive:
 
 
 ```bash
 ```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
 ## Lost keys