@@ -77,7 +77,7 @@ Let's break that command down into its individual pieces to see what's required
77
77
78
78
docker run \
79
79
-v /host/path/to/exports.txt:/etc/exports:ro \
80
- ... \
80
+ ... \
81
81
erichough/nfs-server
82
82
83
83
1 . provide each line of ` /etc/exports ` as an environment variable
@@ -87,21 +87,21 @@ Let's break that command down into its individual pieces to see what's required
87
87
docker run \
88
88
-e NFS_EXPORT_0='/nfs/foo *(ro,no_subtree_check)' \
89
89
-e NFS_EXPORT_1='/nfs/bar 123.123.123.123/32(rw,no_subtree_check)' \
90
- ... \
90
+ ... \
91
91
erichough/nfs-server
92
92
93
93
1 . bake ` /etc/exports ` into a custom image
94
94
95
95
e.g. in a ` Dockerfile ` :
96
96
97
97
``` Dockerfile
98
- FROM ehough /nfs-server
98
+ FROM erichough /nfs-server
99
99
ADD /host/path/to/exports.txt /etc/exports
100
100
```
101
101
102
102
1. **Use `--cap-add SYS_ADMIN` or `--privileged`**
103
103
104
- As noted in the [requirements](#requirements), the container will need additional privileges. So your `run` command will need either:
104
+ As noted in the [requirements](#requirements), the container will need additional privileges. So your `run` command will need * either* :
105
105
106
106
docker run --cap-add SYS_ADMIN ... erichough/nfs-server
107
107
@@ -119,7 +119,7 @@ Let's break that command down into its individual pieces to see what's required
119
119
120
120
docker run -p 2049:2049 ... erichough/nfs-server
121
121
122
- * If you need to support **NFSv3**, you'll need to expose a lot more ports:
122
+ * If you'd like to support **NFSv3**, you' ll need to expose a lot more ports:
123
123
124
124
docker run \
125
125
-p 2049:2049 -p 2049:2049/udp \
@@ -138,7 +138,7 @@ If you pay close attention to each of the items in this section, the server shou
138
138
# # Optional Features
139
139
140
140
* [Kerberos security](doc/feature/kerberos.md)
141
- * [NFSv4 user ID mapping](doc/feature/nfsv4 -user-id-mapping.md)
141
+ * [NFSv4 user ID mapping](doc/feature/nfs4 -user-id-mapping.md)
142
142
* [AppArmor integration](doc/feature/apparmor.md)
143
143
144
144
# # Advanced
@@ -162,4 +162,4 @@ Please [open an issue](https://github.com/ehough/docker-nfs-server/issues) if yo
162
162
This work was based on prior projects:
163
163
164
164
- [f-u-z-z-l-e/docker-nfs-server](https://github.com/f-u-z-z-l-e/docker-nfs-server)
165
- - [sjiveson/nfs-server-alpine](https://github.com/sjiveson/nfs-server-alpine)
165
+ - [sjiveson/nfs-server-alpine](https://github.com/sjiveson/nfs-server-alpine)
0 commit comments