sysutils/docker-freebsd: add docker_flags to the rc script

Add a docker_flags variable to the rc script that can be used to pass
freeform options to the docker command.  I use it for the "-H" option.

PR:		219795
Approved by:	amutu@amutu.com (maintainer)
Approved by:	brd (ports)
This commit is contained in:
Alan Somers 2017-06-06 03:44:36 +00:00
parent 66c2b08ea1
commit 4ed687dfcb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442739
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= docker-freebsd
PORTVERSION= 20150625
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= amutu@amutu.com

View file

@ -19,6 +19,7 @@ load_rc_config $name
: ${docker_dir=/usr/docker}
: ${docker_nat_pf=YES}
: ${docker_nat_iface=NONE}
: ${docker_flags=}
docker_start()
{
@ -36,7 +37,7 @@ docker_start()
fi
echo "Starting docker..."
daemon -p /var/run/docker.pid ${command} -d -e jail -s zfs -g ${docker_dir} -D >/var/log/docker.log 2>/var/log/docker.log
daemon -p /var/run/docker.pid ${command} -d -e jail -s zfs -g ${docker_dir} -D ${docker_flags} >/var/log/docker.log 2>/var/log/docker.log
# Check for linux 64bit support and enable
kldstat | grep -q 'linux64'