Editing Docker build --help
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | docker build --help | |
+ | <pre> | ||
+ | Usage: docker build [OPTIONS] PATH | URL | - | ||
− | + | Build an image from a Dockerfile | |
− | + | ||
− | + | Options: | |
− | |||
− | |||
--add-host list Add a custom host-to-IP mapping (host:ip) | --add-host list Add a custom host-to-IP mapping (host:ip) | ||
--build-arg list Set build-time variables | --build-arg list Set build-time variables | ||
Line 19: | Line 19: | ||
--no-cache Do not use cache when building the image | --no-cache Do not use cache when building the image | ||
-o, --output stringArray Output destination (format: type=local,dest=path) | -o, --output stringArray Output destination (format: type=local,dest=path) | ||
− | + | --platform string Set platform if server is multi-platform capable | |
--progress string Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto") | --progress string Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto") | ||
--pull Always attempt to pull a newer version of the image | --pull Always attempt to pull a newer version of the image | ||
Line 25: | Line 25: | ||
--secret stringArray Secret file to expose to the build (only if BuildKit enabled): id=mysecret,src=/local/secret | --secret stringArray Secret file to expose to the build (only if BuildKit enabled): id=mysecret,src=/local/secret | ||
--ssh stringArray SSH agent socket or keys to expose to the build (only if BuildKit enabled) (format: default|<id>[=<socket>|<key>[,<key>]]) | --ssh stringArray SSH agent socket or keys to expose to the build (only if BuildKit enabled) (format: default|<id>[=<socket>|<key>[,<key>]]) | ||
− | -t, | + | -t, --tag list Name and optionally a tag in the 'name:tag' format |
--target string Set the target build stage to build. | --target string Set the target build stage to build. | ||
+ | </pre> | ||
Advertising: