mirror of https://github.com/docker/docs.git
1.1 KiB
1.1 KiB
| title | keywords | redirect_from | |
|---|---|---|---|
| Local and tar exporters | build, buildx, buildkit, exporter, local, tar |
|
The local and tar exporters output the root filesystem of the build result
into a local directory. They're useful for producing artifacts that aren't
container images.
localexports files and directories.tarexports the same, but bundles the export into a tarball.
Synopsis
Build a container image using the local exporter:
$ docker buildx build --output type=local[,parameters] .
$ docker buildx build --output type=tar[,parameters] .
The following table describes the available parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
dest |
String | Path to copy files to |
Further reading
For more information on the local or tar exporters, see the
BuildKit README{:target="blank" rel="noopener" class=""}.