Skip to content

While doing the docker build i am facing error saying DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: #2297

@Satyadevoperations

Description

@Satyadevoperations

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Hello Team,

While performing the build operation. I am facing error saying as

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
Thanks
Sidharth

Expected behaviour

Actually the build should run successfully but no luck it failed with the below error message.

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:

Actual behaviour

Hello While performing the build operation for my Java code i have encountered an issue saying as mentioned below.

docker: 'buildx' is not a docker command.
See 'docker --help'

Buildx version

docker: 'buildx' is not a docker command. See 'docker --help'

Docker info

ubuntu@ip-172-31-31-167:~/projects/buildx$ docker info
Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 3
  Running: 0
  Paused: 0
  Stopped: 3
 Images: 6
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 
 runc version: 
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.2.0-1012-aws
 Operating System: Ubuntu 22.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 949.7MiB
 Name: ip-172-31-31-167
 ID: f5eb916b-0ff9-40ba-b2a5-cd8a936ee43a
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Builders list

docker: 'buildx' is not a docker command.
See 'docker --help'

Configuration

ubuntu@ip-172-31-31-167:~/projects/java-app$ cat Dockerfile
#Get a Base image with Jdk installed
FROM openjdk:8-jdk-alpine

#Create a working directory to compile, run java apps
WORKDIR /app

#copy code from local machine to docker container
COPY Hello.java .

Compile the code

RUN javac Hello.java

Run the java app

CMD["java","Hello"]

Build logs

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions