Skip to content

Commit b5de6d2

Browse files
committed
additional docker create args
Signed-off-by: Jordan Sokolic <[email protected]>
1 parent ae48074 commit b5de6d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openwrt.conf.example

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ IMAGE=oofnik/openwrt
1212
TAG=latest
1313
# container name
1414
CONTAINER=openwrt_1
15+
# optional additional Docker create args, e.g. for PPPoE "--device /dev/ppp"
16+
ADDITIONAL_DOCKER_CREATE_ARGS=""
1517

1618
## Docker network settings
1719
# name of the WAN Docker network

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ _create_or_start_container() {
122122
--sysctl net.netfilter.nf_conntrack_acct=1 \
123123
--sysctl net.ipv6.conf.all.disable_ipv6=0 \
124124
--sysctl net.ipv6.conf.all.forwarding=1 \
125-
--name $CONTAINER $IMAGE:$TAG >/dev/null
125+
${ADDITIONAL_DOCKER_CREATE_ARGS} --name $CONTAINER $IMAGE:$TAG >/dev/null
126126
docker network connect $WAN_NAME $CONTAINER
127127

128128
_gen_config

0 commit comments

Comments
 (0)