Giter VIP home page Giter VIP logo

Comments (8)

stevemclarke avatar stevemclarke commented on June 20, 2024 6

Ran into this problem trying to get the todo list app running, consistently getting cannot find module.
Suggested instructions for new users:
-Dockerfile needs to be saved under /app
-for windows users a note that the file name is "Dockerfile" without an extension is needed, otherwise windows default text editors will append .txt which will error out on build (this includes Notepad++)
-build cmd needs to be run from /app in the interpreter (cmdline/powershell etc)

from getting-started.

JeremyRoussel avatar JeremyRoussel commented on June 20, 2024 2

These are excellent comments, I'm also just starting and have struggled for several hours trying to start the app container but keep getting path errors because the instructions are not clear on where to put the files and in what directory structure.

from getting-started.

StefanScherer avatar StefanScherer commented on June 20, 2024 1

Thank you @aisbergde for the time writing this valuable feedback. Thanks @JeremyRoussel and @stevemclarke as well.
This gives us many details where and how we should improve the getting started guide.
It looks we forgot to make many steps more precise. Weβ€˜re looking into this.

from getting-started.

stevemclarke avatar stevemclarke commented on June 20, 2024 1

@StefanScherer @mikesir87 I was digging a bit further - maybe mention the path options as well? e.g.
docker build (path to app) -f (path to Dockerfile if not in root of app)

from getting-started.

djgogga avatar djgogga commented on June 20, 2024 1

I was also having the same issue. I put the Dockerfile under /app and found that VS Code names the file with .txt extension (even though I did not add the extension), so I had to rename it. It worked after that. (Windows 10 Pro)

Got further along. But the tutorial is not good. I only got past the one and ran into another issue on the next step. And in DockerDestop I am seeing a lot of other containers pop up as I am doing this tutorial. Containers that I did not download or start. Seems dodgy.

from getting-started.

JonRobertson avatar JonRobertson commented on June 20, 2024 1

I installed Docker Desktop in Windows 10 and went through the Getting Started tutorial/container. The instructions were fairly clear to me up until "Using Mount Points", where the -w and -v parameters were introduced and used ${PWD}: as part of the parameter. The tutorial needs to include commands that work in Windows as well as *nix.

That page also discusses looking at the logs and running nodemon. I have no idea if nodemon should be ran in the Windows command shell (nodemon is not installed as part of Docker Desktop) or I should have been in a *nix shell. I did open the cli for the container but the nodemon command did not work there either.

Once the tutorial got to mysql and multi-container apps, things went downhill. I was able to get mysql running in a container and issue sql commands (such as SHOW DATABASES). But I was not able to get the to-do app to launch. Docker complained because it could not find package.json in the app folder. I tried various ways of specifying the paths for -w and -v but was unable to construct a valid command so the todo container would start. It isn't clear from the tutorial whether the paths for -w or -v are local Windows paths or paths inside the container.

from getting-started.

aisbergde avatar aisbergde commented on June 20, 2024

This is helpful!

When I use a "getting started" app, it would be a good idea to give some more information to really getting started. Why not to link this: https://docs.docker.com/get-started/overview/ and then demonstrate this a little bit? There are images and containers explained, why not to link from inside the getting started app to some points in the documentation?

it looks like there (at docs.docker.com) is a lot of good documentation, but I miss the link between the "getting started" app and some "easy getting started" information. A new user should be enabled to get started based on the steps in the "getting started" app to get a quick learning success.

So what is the result? I did not start because the "getting started" is "to complicated" for me.

I used some other apps, which are using docker, following there instructions and using docker as a "black box", not really understanding what happens in docker.

BTW, this was the reason why I was interested in trying docker: "What a great idea, to build apps, which can work on Windows, Unix, Mac, ...!" Maybe I should learn?

But because I am even not able to run through the "getting started" app, my conclusion is:
"Maybe I am a stupid old white man, who is not able to start with docker technology. Let the young people work with docker which are not so stupid like me."

And because I hope that I am not to stupid to start with docker I opened this issue :-)

from getting-started.

StefanScherer avatar StefanScherer commented on June 20, 2024

I've created a PR #34 to clarify where the Dockerfile (without .txt extension) should be created and where to go in a terminal before the first docker build command. I hope that will help.

from getting-started.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.