Browse Source

Merge pull request #8743 from dmyerscough/fix-example-snippet

Documentation/op-guide: Fix missing docker volume commands and specify the initial DATA_DIR
Gyu-Ho Lee 8 years ago
parent
commit
6277828f13
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Documentation/op-guide/container.md

+ 7 - 0
Documentation/op-guide/container.md

@@ -76,6 +76,13 @@ Use the host IP address when configuring etcd:
 export NODE1=192.168.1.21
 export NODE1=192.168.1.21
 ```
 ```
 
 
+Configure a Docker volume to store etcd data:
+
+```
+docker volume create --name etcd-data
+export DATA_DIR="etcd-data"
+```
+
 Run the latest version of etcd:
 Run the latest version of etcd:
 
 
 ```
 ```