Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
c3ec3ff9
Commit
c3ec3ff9
authored
8 years ago
by
Alexander Block
Browse files
Options
Downloads
Patches
Plain Diff
Allow to specify docker storage driver
parent
7897c34b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory/group_vars/all.yml
+4
-0
4 additions, 0 deletions
inventory/group_vars/all.yml
roles/docker/templates/docker.service.j2
+3
-0
3 additions, 0 deletions
roles/docker/templates/docker.service.j2
with
7 additions
and
0 deletions
inventory/group_vars/all.yml
+
4
−
0
View file @
c3ec3ff9
...
...
@@ -157,6 +157,10 @@ docker_daemon_graph: "/var/lib/docker"
## to self hosted registries like so:
docker_options
:
"
--insecure-registry={{
kube_service_addresses
}}
--graph={{
docker_daemon_graph
}}"
## Uncomment this if you want to force overlay/overlay2 as docker storage driver
## Please note that overlay2 is only supported on newer kernels
#docker_storage_options: -s overlay2
# K8s image pull policy (imagePullPolicy)
k8s_image_pull_policy
:
IfNotPresent
...
...
This diff is collapsed.
Click to expand it.
roles/docker/templates/docker.service.j2
+
3
−
0
View file @
c3ec3ff9
...
...
@@ -11,6 +11,9 @@ Wants=docker.socket
[Service]
Type=notify
{% if docker_storage_options is defined %}
Environment="DOCKER_STORAGE_OPTIONS={{docker_storage_options}}"
{% endif %}
Environment=GOTRACEBACK=crash
ExecReload=/bin/kill -s HUP $MAINPID
Delegate=yes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment