Web3 Curriculum

Installing the Web3 Curriculum.
Did not work then built the docker image.
Windows 11 Home Single Language

PS D:\Workspaces\Web3\web3-curriculum> Get-Content Dockerfile | docker build -
failed to get console mode for stdin: The handle is invalid.
failed to get console mode for stdin: The handle is invalid.
2024/01/14 01:23:20 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 3.3s (23/23) FINISHED                                                                       docker:default
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 1.38kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                    2.1s
 => [ 1/19] FROM docker.io/library/ubuntu:20.04@sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c61  0.0s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 2B                                                                                    0.0s
 => CACHED [ 2/19] RUN apt-get update && apt-get install -y sudo                                                   0.0s
 => CACHED [ 3/19] RUN yes | unminimize                                                                            0.0s
 => CACHED [ 4/19] RUN ln -snf /usr/share/zoneinfo/America/New_York /etc/localtime && echo America/New_York > /et  0.0s
 => CACHED [ 5/19] RUN adduser --disabled-password   --gecos '' camper                                             0.0s
 => CACHED [ 6/19] RUN adduser camper sudo                                                                         0.0s
 => CACHED [ 7/19] RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >>   /etc/sudoers                                       0.0s
 => CACHED [ 8/19] RUN sudo apt-get install -y curl git bash-completion man-db firefox                             0.0s
 => CACHED [ 9/19] RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -                           0.0s
 => CACHED [10/19] RUN sudo apt-get install -y nodejs                                                              0.0s
 => CACHED [11/19] RUN sudo apt-get install -y build-essential                                                     0.0s
 => CACHED [12/19] RUN curl https://sh.rustup.rs -sSf | sh -s -- -y                                                0.0s
 => CACHED [13/19] RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh                       0.0s
 => CACHED [14/19] WORKDIR /workspace/web3-curriculum                                                              0.0s
 => CACHED [15/19] RUN mkdir ~/.npm-global                                                                         0.0s
 => CACHED [16/19] RUN npm config set prefix '~/.npm-global'                                                       0.0s
 => CACHED [17/19] COPY . .                                                                                        0.0s
 => CACHED [18/19] WORKDIR /workspace/web3-curriculum                                                              0.0s
 => ERROR [19/19] RUN cd /workspace/web3-curriculum && npm install                                                 1.0s
------
 > [19/19] RUN cd /workspace/web3-curriculum && npm install:
0.773 npm ERR! code ENOENT
0.781 npm ERR! syscall open
0.781 npm ERR! path /workspace/web3-curriculum/package.json
0.781 npm ERR! errno -2
0.781 npm ERR! enoent ENOENT: no such file or directory, open '/workspace/web3-curriculum/package.json'
0.781 npm ERR! enoent This is related to npm not being able to find a file.
0.781 npm ERR! enoent
0.781
0.781 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-13T19_53_23_118Z-debug-0.log
------
Dockerfile:51
--------------------
  49 |     WORKDIR ${HOMEDIR}
  50 |
  51 | >>> RUN cd ${HOMEDIR} && npm install
  52 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cd ${HOMEDIR} && npm install" did not complete successfully: exit code: 254
PS D:\Workspaces\Web3\web3-curriculum>

Welcome there,

It looks like there may be files missing. Often the best solution is to delete the repo, re-clone it, and try again.

Tried did not work.
My Docker OS image was approx 36 Gb is that expected ? i could see two images of 7.5 Gd and 6 GB in docker Ps commnd ?

My Docker OS image was approx 36 Gb is that expected ?

No, that is not expected. From what I recall, 6-8GB is normal.

Two images is normal, because one of them is the base image we use (Ubuntu), and the other is the custom tooling installed on top of it.