Browse Source

Merge pull request #12849 from TDT-AG/pr/20200717-docker-ce

docker-ce: add reload handling
lilik-openwrt-22.03
Florian Eckert 4 years ago
committed by GitHub
parent
commit
41e6cc2768
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      utils/docker-ce/Makefile
  2. +9
    -0
      utils/docker-ce/files/dockerd.init

+ 1
- 1
utils/docker-ce/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=docker-ce
PKG_VERSION:=19.03.12
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=components/cli/LICENSE components/engine/LICENSE


+ 9
- 0
utils/docker-ce/files/dockerd.init View File

@ -59,6 +59,15 @@ start_service() {
procd_close_instance
}
reload_service() {
process_config
procd_send_signal dockerd
}
service_triggers() {
procd_add_reload_trigger 'dockerd'
}
ip4tables_remove_nat() {
iptables -t nat -D OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
iptables -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER


Loading…
Cancel
Save