#!/usr/bin/env bash
_main() {
synopkgctl stop Docker
sed -i 's/^[^#]*[[:space:]]*\$DockerUpdaterBin postinst updatedockerdconf "\$(get_install_volume_type)"/#&/' \
/var/packages/Docker/scripts/start-stop-status
local docker_config_path='/var/packages/Docker/etc/dockerd.json'
local content="$(cat "${docker_config_path}")"
jq '. | .ipv6 = true' <<< "${content}" > "${docker_config_path}"
synopkgctl start Docker
}
_main "$@"
版权归属:
小李同学
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区