The make images does not work out of the box as it requires docker-buildx to be installed, but it is not mentioned in the developer/contribution guide. If you installdocker-buildx, them the build succeed.
####### Building Camel K operator arch amd64 container image...
mkdir -p build/_maven_output
docker buildx build --target base --platform=linux/amd64 --build-arg IMAGE_ARCH=amd64 --load -t docker.io/apache/camel-k:2.4.0-SNAPSHOT-amd64 -f build/Dockerfile .
unknown flag: --target
See 'docker --help'.
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Common Commands:
run Create and run a new container from an image
exec Execute a command in a running container
ps List containers
build Build an image from a Dockerfile
pull Download an image from a registry
push Upload an image to a registry
images List images
login Log in to a registry
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information
Management Commands:
builder Manage builds
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
plugin Manage plugins
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
...
What happened?
The
make images
does not work out of the box as it requiresdocker-buildx
to be installed, but it is not mentioned in the developer/contribution guide. If you installdocker-buildx,
them the build succeed.Steps to reproduce
Relevant log output