Docker build command
docker build: Use Dockerfile create the mirror.
grammar
docker build [OPTIONS] PATH | URL | -
OPTIONS Description:
--build-arg = []: Set the variable image was created;
--cpu-shares: set cpu using the weight;
--cpu-period: limit CPU CFS period;
--cpu-quota: limit CPU CFS quota;
--cpuset-cpus: CPU id specified use;
--cpuset-mems: Specifies memory id;
--disable-content-trust: Ignore checking, turned on by default;
-f: Dockerfile specify the path to be used;
--force-rm: Setting the mirroring process to remove the intermediate container;
--isolation: Use container isolation technology;
--label = []: mirror set of metadata used;
-m: Setting memory maximum;
--memory-swap: Swap to set the maximum memory + swap, "- 1" represents Any swap;
--no-cache: create mirrored process does not use the cache;
--pull: try to update the new version of the mirror;
-q: Quiet mode, only the output image after the success of ID;
--rm: set up a mirror after a successful delete intermediate container;
--shm-size: set / dev / shm size, the default value is 64M;
--ulimit: Ulimit configuration.
Examples
Dockerfile current directory to create the mirror.
docker build -t w3big/ubuntu:v1 .
Use URL github.com/creack/docker-firefox of Dockerfile create a mirror.
docker build github.com/creack/docker-firefox