Docker build error

Written by DEL support01
Updated 8 months ago

You have a dockerfile looking like this

When building your image,  you can encounter this error message

it happens because you installed docker with the simple command that was proposed to you by ubuntu ( apt install docker.io
so you have to purge that version and do the full install of docker .
For that, you can ask all the command to chat gpt to uninstall docker.io

After it s remove, you ask again how to install docker correctly(full version), you can read directly the documentation on the docker website https://docs.docker.com/engine/install/ubuntu/ or easily ask to chat gpt again

As you can see the image is building perfectly. 

To avoid having to troubleshoot due to the package , it s adviced to install every package folllowing the official documentation (AWS CLI, TERRAFORM, PACKER, KUBECTL etc..) 

Did this answer your question?