Fixes #26818 : Removing bad reference in docker volumes tutorial

Signed-off-by: milindchawre <milindchawre@gmail.com>
This commit is contained in:
milindchawre 2016-10-17 11:54:32 +00:00
parent b54e3a23f1
commit 9ce069647a
1 changed files with 0 additions and 6 deletions

View File

@ -158,12 +158,6 @@ $ docker run -d -P --name web -v /src/webapp:/opt/webapp:ro training/webapp pyth
Here you've mounted the same `/src/webapp` directory but you've added the `ro`
option to specify that the mount should be read-only.
Because of [limitations in the `mount`
function](http://lists.linuxfoundation.org/pipermail/containers/2015-April/035788.html),
moving subdirectories within the host's source directory can give
access from the container to the host's file system. This requires a malicious
user with access to host and its mounted directory.
>**Note**: The host directory is, by its nature, host-dependent. For this
>reason, you can't mount a host directory from `Dockerfile` because built images
>should be portable. A host directory wouldn't be available on all potential