Difference between revisions of "Docker build"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
docker build build an image from a <code>[[Dockerfile]]</code> | docker build build an image from a <code>[[Dockerfile]]</code> | ||
− | Build an image without repo/tag/name | + | ===Build an image without repo/tag/name=== |
− | + | *<code>docker build .</code> | |
− | + | *<code>docker build -t my-image_name .</code> | |
− | + | *<code>docker build --[[tag]] my-confluence-image-name --build-arg [[CONFLUENCE]]_VERSION=6.x.x</code> | |
− | + | *<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 --[[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> | |
− | docker build --cache-from= | + | docker build --cache-from=</code> |
Revision as of 16:56, 28 September 2021
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 -t openalpr https://github.com/openalpr/openalpr.git
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
docker run
docker push
docker pull
docker save
docker load
docker-compose build
docker buildx build .
docker tag
tinit
init for containerskaniko
(2018)docker-compose build
minikube image build
- podman build
- yarn build
See also
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: