Commit bb1a72c9 authored by Fabio Busatto's avatar Fabio Busatto

Update doc for dind using overlay2

parent 6f0f65be
...@@ -134,7 +134,7 @@ In order to do that, follow the steps: ...@@ -134,7 +134,7 @@ In order to do that, follow the steps:
# When using dind, it's wise to use the overlayfs driver for # When using dind, it's wise to use the overlayfs driver for
# improved performance. # improved performance.
variables: variables:
DOCKER_DRIVER: overlay DOCKER_DRIVER: overlay2
services: services:
- docker:dind - docker:dind
...@@ -248,7 +248,7 @@ aware of the following implications: ...@@ -248,7 +248,7 @@ aware of the following implications:
By default, when using `docker:dind`, Docker uses the `vfs` storage driver which By default, when using `docker:dind`, Docker uses the `vfs` storage driver which
copies the filesystem on every run. This is a very disk-intensive operation copies the filesystem on every run. This is a very disk-intensive operation
which can be avoided if a different driver is used, for example `overlay`. which can be avoided if a different driver is used, for example `overlay2`.
1. Make sure a recent kernel is used, preferably `>= 4.2`. 1. Make sure a recent kernel is used, preferably `>= 4.2`.
1. Check whether the `overlay` module is loaded: 1. Check whether the `overlay` module is loaded:
...@@ -275,8 +275,12 @@ which can be avoided if a different driver is used, for example `overlay`. ...@@ -275,8 +275,12 @@ which can be avoided if a different driver is used, for example `overlay`.
``` ```
variables: variables:
DOCKER_DRIVER: overlay DOCKER_DRIVER: overlay2
``` ```
> **Note:**
- For more information about using OverlayFS with Docker, you can read
[Use the OverlayFS storage driver](https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/).
## Using the GitLab Container Registry ## Using the GitLab Container Registry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment