dockersamples / 101-tutorial

Apache License 2.0
334 stars 222 forks source link

Demo Fundamentally Broken #34

Open Ceroxylon opened 3 years ago

Ceroxylon commented 3 years ago

I copy and pasted the code for creating the Dockerfile.

First issue: yarn has changed its commands, it is now "add" instead of "install"

Second Issue: after giving the 'docker build -t docker-101 .' command, the first three steps are successful, but it gives an error at step 4 after it tries to add v1.22.5, saying

"error Missing list of packages to add to your project."

Not exactly inspiring to learn Docker when the tutorial requires so much debugging

gggirlgeek commented 3 years ago

I agree! And how do you create a Dockerfile???? The tutorial should say. I ended up creating a blank text document on my home computer named "Dockerfile" and drag-dropping it onto the PWD command line to upload it. Then I pressed the Edit tab and the file was there under the app folder. Clicking it opens it for editing.

Update: I take it back. The "install" command actually does work instead of add. I get "Successfully built..." and "Successfully tagged..."

But they still don't give you a command to create a Dockerfile. Nano and Mkfile are not available commands.

Update: on the 3rd page "Updating our App" they finally give instructions on our to create a text file: "Touch Dockerfile". Not very helpful after we needed it on page 2.

Grrrrrrrrrr!