Strange Docker output or Help me please i'm very noob

Hi everybody! Need some help with Docker

Overall problem is Docker strange output and missing any errors or warnings

Dockerfile is really simple:

FROM node:14-alpine

RUN npm install

CMD ["npm", "start"]

What i expected is error about: We didn’t found any package.json and blah blah
something like this:

Here is what i get:

[+] Building 25.2s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 100B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker .io/library/node:14-alpine 3.9s
=> [1/2] FROM docker. io/library/node:14-alpine@sha256:d41417bb7fd04744cd159a40632f918c13bc1af3486a848782e1f68af2c3e6cb 19.3s
=> => resolve docker .io/library/node:14-alpine@sha256:d41417bb7fd04744cd159a40632f918c13bc1af3486a848782e1f68af2c3e6cb 0.0s
=> => sha256:f2ffd52523c3c53242323a6259d0775306d5d3293c223b73a25ebe45cc855cfe 36.00MB / 36.00MB 17.3s
=> => sha256:48a445fb9d78e4fe7356b01031e5eee9ba5a3229a24d4d06c1c0e68271f51921 2.24MB / 2.24MB 2.1s
=> => sha256:7a27e63388b243ea1e750aba171f05f71fb9df23ab31dea9d049a4207fec4ae4 280B / 280B 0.9s
=> => sha256:d41417bb7fd04744cd159a40632f918c13bc1af3486a848782e1f68af2c3e6cb 1.43kB / 1.43kB 0.0s
=> => sha256:05a2f563ff66492dbe3c82cb482d6c1bbaecefcac4d42bd3744c7693028c9e44 1.16kB / 1.16kB 0.0s
=> => sha256:7f1893c3ede08c41f7e55c7a2a68fe115c6f1c9b2d5375cd4c4b26fab504170a 6.73kB / 6.73kB 0.0s
=> => extracting sha256:f2ffd52523c3c53242323a6259d0775306d5d3293c223b73a25ebe45cc855cfe 1.4s
=> => extracting sha256:48a445fb9d78e4fe7356b01031e5eee9ba5a3229a24d4d06c1c0e68271f51921 0.1s
=> => extracting sha256:7a27e63388b243ea1e750aba171f05f71fb9df23ab31dea9d049a4207fec4ae4 0.0s
=> [2/2] RUN npm install 2.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:8485cb867fc137c9a59178baa1bc4de0333fbca62697a197d549302f8c3d24f2

And output is different, it always missing last step (CMD)

Using on macos catalina with zsh

Docker version

Client: Docker Engine - Community
Cloud integration: 1.0.2
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 16:58:31 2020
OS/Arch: darwin/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.12)
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:07:04 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683

Thank you in adnvance!

Best Regards

A late reply, but maybe it will help others with the same problem.
You have buildkit enabled and need to disable it.
If you are using Docker Desktop, open the preferences and navigate to “Docker Engine”.
Set buildkit to false and click “Apply and Restart”.
{
“features”: {
“buildkit”: false
},
“experimental”: false
}

7 Likes

Thank you @djone! I had not used Docker on my Windows 10 development machine for maybe 3 or 4 weeks. When I tried a build yesterday I was shocked to see that it failed and that the build output was very different than the output I was used to seeing hundreds of times before. I can see that Docker was upgraded on my computer several times in the past week - it seems that one of those upgrades has enabled “buildkit” by default. Your instruction restored my expect output and fixed my build error as well. Thanks for taking the time to reply to OP’s query! Much appreciated - it helped me a lot!! (And now I will read up on what “buildkit” is and its proper usage.)
Cheers,
Wilf

1 Like

This helped. Thank you!

Thank you so much! Worked for my windows machine as well - building the code in VS Code with Remote-WSL on Ubuntu.

Thank you. It is helped me.

thank you very much I spent hours on this

ERROR: failed to solve: myimage: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

 => ERROR [internal] load metadata for docker.io/library/myimage:latest