KaiJun
KaiJun

Reputation: 127

Using buildx feature in docker compose file

I am building a dockerfile that requires first using docker buildx to allow insecure. My current workflow is:

  1. docker buildx create --buildkitd-flags '--allow-insecure-entitlement security.insecure' --name insecure
  2. docker build --builder insecure --allow security.insecure -f Dockerfile --load -t <image_name> .

As there are subsequently a few more other containers to be started, I want to put this into a docker compose file. Is there a way I can put these two steps into a compose file (i.e. using buildx in docker compose)?

Upvotes: 0

Views: 219

Answers (0)

Related Questions