sh 码头工人桥gwbridge群

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 码头工人桥gwbridge群相关的知识,希望对你有一定的参考价值。

# https://success.docker.com/article/how-do-i-change-the-docker-gwbridge-address


docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \
xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={}docker network inspect --format

gwbridge_users=$(docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \
xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={})

echo "$gwbridge_users" | xargs docker stop

docker network rm docker_gwbridge

# in troubles delete docker_gwbridge
# docker network disconnect -f {network} {endpoint-name}
docker network disconnect -f docker_gwbridge gateway_ingress-sbox && docker network rm docker_gwbridge

export SUBNET=172.20.0.0/20
export GATEWAY=172.20.0.1

docker network create  \
--subnet=${SUBNET}     \
--gateway ${GATEWAY}   \
-o com.docker.network.bridge.enable_icc=false \
-o com.docker.network.bridge.name=docker_gwbridge \
docker_gwbridge


docker network inspect docker_gwbridge --format '{{range $k, $v := index .IPAM.Config 0}}{{.| printf "%s: %s " $k}}{{end}}'

echo "$gwbridge_users" | xargs docker start

以上是关于sh 码头工人桥gwbridge群的主要内容,如果未能解决你的问题,请参考以下文章

sh 码头工人ip

sh 利用nsenter进入码头工人容器

sh Commandes码头工人

sh 清理码头工人aufs

sh 穷人码头工人堆栈解析器

sh 码头工人清理