Skip to content

Wrong destination folder in container #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions engine/tutorials/dockervolumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ In addition to creating a volume using the `-v` flag you can also mount a
directory from your Docker engine's host into a container.

```bash
$ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py
$ docker run -d -P --name web -v /src/webapp:/webapp training/webapp python app.py
```

This command mounts the host directory, `/src/webapp`, into the container at
`/opt/webapp`. If the path `/opt/webapp` already exists inside the container's
`/webapp`. If the path `/webapp` already exists inside the container's
image, the `/src/webapp` mount overlays but does not remove the pre-existing
content. Once the mount is removed, the content is accessible again. This is
consistent with the expected behavior of the `mount` command.
Expand Down Expand Up @@ -152,7 +152,7 @@ Docker volumes default to mount in read-write mode, but you can also set it to
be mounted read-only.

```bash
$ docker run -d -P --name web -v /src/webapp:/opt/webapp:ro training/webapp python app.py
$ docker run -d -P --name web -v /src/webapp:/webapp:ro training/webapp python app.py
```

Here you've mounted the same `/src/webapp` directory but you've added the `ro`
Expand Down Expand Up @@ -186,12 +186,12 @@ the other examples.

The following command creates a named volume, called `my-named-volume`,
using the `flocker` volume driver, and makes it available within the container
at `/opt/webapp`:
at `/webapp`:

```bash
$ docker run -d -P \
--volume-driver=flocker \
-v my-named-volume:/opt/webapp \
-v my-named-volume:/webapp \
--name web training/webapp python app.py
```

Expand All @@ -205,7 +205,7 @@ using the `docker volume create` command.
$ docker volume create -d flocker -o size=20GB my-named-volume

$ docker run -d -P \
-v my-named-volume:/opt/webapp \
-v my-named-volume:/webapp \
--name web training/webapp python app.py
```

Expand Down