Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Jan 9, 2021
1 parent f72cca4 commit be5b700
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ if [ -z "$KEEPALIVED_STATE" ]; then
export KEEPALIVED_STATE='BACKUP'
fi

exec docker run -i --rm --name keepalived \
if [ -z "$KEEPALIVED_CONTAINER_NAME" ]; then
export KEEPALIVED_CONTAINER_NAME='keepalived'
fi

exec docker run -i --rm --name "$KEEPALIVED_CONTAINER_NAME" \
--net=host \
--cap-add=NET_ADMIN \
--cap-add=NET_BROADCAST \
Expand Down

0 comments on commit be5b700

Please sign in to comment.