Share feedback
Answers are generated based on the documentation.

docker builder build

内容説明Build an image from a Dockerfile
利用方法docker builder build [OPTIONS] PATH | URL | -
エイリアス
docker image build docker build docker builder build

内容説明

See docker build for more information.

オプション

オプションデフォルト内容説明
--add-hostAdd a custom host-to-IP mapping (host:ip)
--build-argSet build-time variables
--cache-fromImages to consider as cache sources
--cgroup-parentSet the parent cgroup for the RUN instructions during build
--compressCompress the build context using gzip
--cpu-periodLimit the CPU CFS (Completely Fair Scheduler) period
--cpu-quotaLimit the CPU CFS (Completely Fair Scheduler) quota
-c, --cpu-sharesCPU shares (relative weight)
--cpuset-cpusCPUs in which to allow execution (0-3, 0,1)
--cpuset-memsMEMs in which to allow execution (0-3, 0,1)
-f, --fileName of the Dockerfile (Default is PATH/Dockerfile)
--force-rmAlways remove intermediate containers
--iidfileWrite the image ID to the file
--isolationContainer isolation technology
--labelSet metadata for an image
-m, --memoryMemory limit
--memory-swapSwap limit equal to memory plus swap: -1 to enable unlimited swap
--networkAPI 1.25 以上 Set the networking mode for the RUN instructions during build
--no-cacheDo not use cache when building the image
--platformAPI 1.38 以上 Set platform if server is multi-platform capable
--pullAlways attempt to pull a newer version of the image
-q, --quietSuppress the build output and print image ID on success
--rmtrueRemove intermediate containers after a successful build
--security-optSecurity options
--shm-sizeSize of /dev/shm
--squashAPI 1.25 以上 試験的 (デーモン) Squash newly built layers into a single new layer
-t, --tagName and optionally a tag in the name:tag format
--targetSet the target build stage to build.
--ulimitUlimit options