Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
b6e37978
Commit
b6e37978
authored
Dec 21, 2017
by
Teresa e Junior
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document mounting volumes with Docker-in-Docker
parent
5d8d72f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
doc/ci/docker/using_docker_build.md
doc/ci/docker/using_docker_build.md
+15
-0
No files found.
doc/ci/docker/using_docker_build.md
View file @
b6e37978
...
...
@@ -164,6 +164,21 @@ not without its own challenges:
-
By default,
`docker:dind`
uses
`--storage-driver vfs`
which is the slowest
form offered. To use a different driver, see
[
Using the overlayfs driver
](
#using-the-overlayfs-driver
)
.
-
Since the
`docker:dind`
container and the runner container don't share their
root filesystem, the job's working directory can be used as a mount point for
children containers. For example, if you have files you want to share with a
child container, you may create a subdirectory under
`/builds/$CI_PROJECT_PATH`
and use it as your mount point (for a more thorough explanation, check
[
issue
#41227
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/41227
)
):
```yaml
variables:
MOUNT_POINT: /builds/$CI_PROJECT_PATH/mnt
script:
- mkdir -p "$MOUNT_POINT"
- docker run -v "$MOUNT_POINT:/mnt" my-docker-image
```
An example project using this approach can be found here: https://gitlab.com/gitlab-examples/docker.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment