-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for different docker directory #10
Conversation
@@ -4,7 +4,11 @@ | |||
#DOCKER="/usr/local/bin/docker" | |||
|
|||
# Use DOCKER_OPTS to modify the daemon startup options. | |||
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" | |||
{% if docker.datadir %} | |||
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -g {{ docker.datadir }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets leave the DNS as optional still (leave it commented) and add another line for -g
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
We did this before in the past[1], so I am happy to do it again. 👍 from me [1]: |
bd256c3
to
d66791d
Compare
d66791d
to
8e58d01
Compare
# Docker Upstart and SysVinit configuration file | ||
|
||
# Customize location of Docker binary (especially for development testing). | ||
#DOCKER="/usr/local/bin/docker" | ||
|
||
# Use DOCKER_OPTS to modify the daemon startup options. | ||
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" | ||
{% if docker.datadir %} | ||
DOCKER_OPTS="-g {{ docker.datadir }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be better append (to the currently empty) variable in case the line above is ever uncommented?
i.e. the line would be
DOCKER_OPTS="${DOCKER_OPTS} -g {{ docker.datadir }}"
It would mean that a change to the DNS options would result in a 1-line diff rather than something larger.
8e58d01
to
77d1dc5
Compare
Add support for different docker directory