mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-06-28 06:56:13 +02:00
service allow sub-command must need a port
This commit is contained in:
parent
b6c6516731
commit
b8968f8481
2 changed files with 22 additions and 12 deletions
|
@ -31,9 +31,10 @@ function update-ufw-rules() {
|
|||
}
|
||||
|
||||
function run-ufw-docker() {
|
||||
declare -a docker_opts=(run --rm -t --name ufw-docker-agent-tmp-$(date '+%Y%m%d%H%M%S') \
|
||||
--cap-add NET_ADMIN --network host \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
declare -a docker_opts=(run --rm -t --name ufw-docker-agent-tmp-$(date '+%Y%m%d%H%M%S')
|
||||
--cap-add NET_ADMIN --network host
|
||||
--env UFW_DOCKER_FORCE_ADD=yes
|
||||
-v /var/run/docker.sock:/var/run/docker.sock
|
||||
-v /etc/ufw:/etc/ufw "${ufw_docker_agent_image}" "$@")
|
||||
echo docker "${docker_opts[@]}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue