Docker buildx build --help

From wikieduonline
Revision as of 13:08, 14 February 2023 by Brave (talk | contribs)
Jump to navigation Jump to search
docker buildx build --help
Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build

Aliases:
  docker buildx build, docker buildx b

Options:
      --add-host strings
                Add a custom host-to-IP mapping
                (format: "host:ip")
      --allow strings
                Allow extra privileged entitlement
                (e.g., "network.host",
                "security.insecure")
      --build-arg stringArray
                Set build-time variables
      --build-context stringArray
                Additional build contexts (e.g.,
                name=path)
      --builder string
                Override the configured builder instance
      --cache-from stringArray
                External cache sources (e.g.,
                "user/app:cache",
                "type=local,src=path/to/dir")
      --cache-to stringArray
                Cache export destinations (e.g.,
                "user/app:cache",
                "type=local,dest=path/to/dir")
      --cgroup-parent string
                Optional parent cgroup for the container
  -f, --file string
                Name of the Dockerfile (default:
                "PATH/Dockerfile")
      --iidfile string
                Write the image ID to the file
      --label stringArray
                Set metadata for an image
      --load
                Shorthand for "--output=type=docker"
      --metadata-file string
                Write build result metadata to the file
      --network string
                Set the networking mode for the
                "RUN" instructions during build
                (default "default")
      --no-cache
                Do not use cache when building the image
      --no-cache-filter stringArray
                Do not cache specified stages
  -o, --output stringArray
                Output destination (format:
                "type=local,dest=path")
      --platform stringArray
                Set target platform for build
      --progress string
                Set type of progress output
                ("auto", "plain", "tty"). Use plain
                to show container output (default
                "auto")
      --pull
                Always attempt to pull all
                referenced images
      --push
                Shorthand for "--output=type=registry"
  -q, --quiet
                Suppress the build output and print
                image ID on success
      --secret stringArray
                Secret to expose to the build
                (format:
                "id=mysecret[,src=/local/secret]")
      --shm-size bytes
                Size of "/dev/shm"
      --ssh stringArray
                SSH agent socket or keys to expose
                to the build (format:
                "default|<id>[=<socket>|<key>[,<key>]]")
  -t, --tag stringArray
                Name and optionally a tag (format:
                "name:tag")
      --target string
                Set the target build stage to build
      --ulimit ulimit
                Ulimit options (default [])


docker buildx: [ create | use | du | build | inspect | bake | prune | prune --help | --help], buildx cache, mode=max

Advertising: