Docker Community Forums

Share and learn in the Docker community.

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
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
Version: v1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
Version: 0.18.0
GitCommit: fec3683

Thank you in adnvance!

Best Regards