fix command testing for docker network
This commit is contained in:
parent
494bf08397
commit
80c168f9a6
1 changed files with 3 additions and 3 deletions
|
|
@ -569,10 +569,10 @@ function docker_cleanup {
|
|||
docker network prune -f
|
||||
# ensure our ipv6 network still exists
|
||||
echo "${blue}docker-cleanup:${normal} Ensuring IPv6 network still exists..."
|
||||
if [ ! -x "docker network ls | grep 'ip6net'" ]; then
|
||||
docker network create --ipv6 --subnet fd00:cafe:face:feed::/64 ip6net
|
||||
else
|
||||
if docker network ls | grep 'ip6net'; then
|
||||
echo "${green}Docker IPv6 network still exists.${normal}"
|
||||
else
|
||||
docker network create --ipv6 --subnet fd00:cafe:face:feed::/64 ip6net
|
||||
fi
|
||||
echo "${green}Done. Beep!${normal}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue