Editing Docker build
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 2: | Line 2: | ||
<code>docker build</code> builds an image from a <code>[[Dockerfile]]</code> | <code>docker build</code> builds an image from a <code>[[Dockerfile]]</code> | ||
* https://docs.docker.com/engine/reference/commandline/build/ | * https://docs.docker.com/engine/reference/commandline/build/ | ||
− | |||
− | |||
− | |||
− | == Build an image without repo/tag/name == | + | === Build an image without repo/tag/name === |
* <code>[[docker build .]]</code> | * <code>[[docker build .]]</code> | ||
− | * <code> | + | * <code>docker build -t my-image_name .</code> |
− | * <code>docker build - | + | *<code>docker build --[[tag]] my-confluence-image-name --build-arg [[CONFLUENCE]]_VERSION=6.x.x</code> |
− | * <code>docker build -t | + | *<code>docker build -t myregistry.jfrog.io/backend/test --push --progress=plain .</code> |
− | + | *<code>docker build -t [[openalpr]] https://github.com/openalpr/openalpr.git</code> | |
− | |||
− | |||
− | |||
− | * <code>docker build -t [[openalpr]] https://github.com/openalpr/openalpr.git</code> | ||
− | * <code>docker build --[[build-arg]] [[arch]]=$arch -t your_artifactory.your_domain.com/test-multi-arch/busybox:$arch-test .</code> | + | *<code>docker build --[[build-arg]] [[arch]]=$arch -t your_artifactory.your_domain.com/test-multi-arch/busybox:$arch-test .</code> |
− | * <code>-t Tag an image https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t</code> | + | *<code>-t Tag an image https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t</code> |
− | * <code>docker build | + | *<code>docker build --cache-from=</code> |
− | |||
− | |||
− | |||
docker build | docker build | ||
"docker build" requires exactly 1 argument. | "docker build" requires exactly 1 argument. | ||
− | See ' | + | See 'docker build --help'. |
Usage: docker build [OPTIONS] PATH | URL | - | Usage: docker build [OPTIONS] PATH | URL | - | ||
Line 38: | Line 28: | ||
Build an image from a [[Dockerfile]] | Build an image from a [[Dockerfile]] | ||
− | + | ==Related terms == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Related terms == | ||
− | |||
* <code>[[docker run]]</code> | * <code>[[docker run]]</code> | ||
* <code>[[docker push]]</code> | * <code>[[docker push]]</code> | ||
Line 55: | Line 35: | ||
* <code>[[docker load]]</code> | * <code>[[docker load]]</code> | ||
* <code>[[docker-compose build]]</code> | * <code>[[docker-compose build]]</code> | ||
− | * <code>[[ | + | * <code>docker [[buildx]] build .</code> |
* <code>[[docker tag]]</code> | * <code>[[docker tag]]</code> | ||
* <code>tinit</code> [[init]] for containers | * <code>tinit</code> [[init]] for containers | ||
+ | * [[Kaniko]] ([[2018]]) | ||
+ | * [[BuildKit]] | ||
+ | * <code>[[docker-compose build]]</code> | ||
* <code>[[minikube image build]]</code> | * <code>[[minikube image build]]</code> | ||
* <code>[[podman build]]</code> | * <code>[[podman build]]</code> | ||
* <code>[[yarn build]]</code> | * <code>[[yarn build]]</code> | ||
− | * [[ | + | * [[FROM]] |
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* {{docker build}} | * {{docker build}} | ||
− | * {{ | + | * {{Docker}} |
[[Category:Docker]] | [[Category:Docker]] |
Advertising: