Merge pull request #303 from shawxr/patch-1

Update bind-mounts.md
pull/304/head
康怀帅 2017-12-26 16:13:52 +08:00 committed by GitHub
commit 42317a359d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,10 +30,10 @@ $ docker run -d -P \
python app.py
```
加了 `readonly` 之后,就挂载为 `只读` 了。如果你在容器内 `/src/webapp` 目录新建文件,会显示如下错误
加了 `readonly` 之后,就挂载为 `只读` 了。如果你在容器内 `/opt/webapp` 目录新建文件,会显示如下错误
```bash
/src/webapp # touch new.txt
/opt/webapp # touch new.txt
touch: new.txt: Read-only file system
```