Difference between revisions of "Docker build"

From wikieduonline
Jump to navigation Jump to search
Line 40: Line 40:
 
* <code>tinit</code> [[init]] for containers
 
* <code>tinit</code> [[init]] for containers
 
* <code>[[kaniko]]</code> ([[2018]])
 
* <code>[[kaniko]]</code> ([[2018]])
 +
* [[BuildKit]]
 
* <code>[[docker-compose build]]</code>
 
* <code>[[docker-compose build]]</code>
 
* <code>[[minikube image build]]</code>
 
* <code>[[minikube image build]]</code>

Revision as of 09:36, 19 January 2022

docker build build an image from a Dockerfile

Build an image without repo/tag/name

  • docker build .
  • docker build -t my-image_name .
  • docker build --tag my-confluence-image-name --build-arg CONFLUENCE_VERSION=6.x.x
  • docker build -t myregistry.jfrog.io/backend/test --push --progress=plain .
  • docker build --build-arg arch=$arch -t your_artifactory.your_domain.com/test-multi-arch/busybox:$arch-test .
  • docker build --cache-from=
docker build
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | - 

Build an image from a Dockerfile

Related terms

See also

Advertising: