Docker buildx: failed to solve: rpc error: code = Unknown desc = network.host is not allowed

created at 09-26-2021 views: 1

solution

network=host is considered insecure. You need to pass 

--buildkitd-flags'--allow-insecure-entitlement network.host' 

when creating the builder. Examples are as follows:

docker buildx create --name ingress-nginx --buildkitd-flags '--allow-insecure-entitlement network.host'
Please log in to leave a comment.