Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 8e58d01

Browse files
author
Leonidas Tsampros
committed
Add support for different docker directory
1 parent 0a07787 commit 8e58d01

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docker/map.jinja

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'pkg': 'lxc-docker',
44
'pkg_version': '1.6.2',
55
'py_version': '1.2.2',
6+
'datadir': '',
67
},
78
'default': 'Debian',
89
}, merge=salt['pillar.get']('docker',{})) %}

docker/templates/docker/default

+4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
{% from "docker/map.jinja" import docker with context %}
12
# Docker Upstart and SysVinit configuration file
23

34
# Customize location of Docker binary (especially for development testing).
45
#DOCKER="/usr/local/bin/docker"
56

67
# Use DOCKER_OPTS to modify the daemon startup options.
78
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
9+
{% if docker.datadir %}
10+
DOCKER_OPTS="-g {{ docker.datadir }}"
11+
{% endif %}
812

913
# If you need Docker to use an HTTP proxy, it can also be specified here.
1014
#export http_proxy="http://127.0.0.1:3128/"

0 commit comments

Comments
 (0)