-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For getpapers:- "Dockerfile: cannot find the file specified." #88
Comments
It looks like you named your |
Now, I created the Dockerfile again in desktop and renamed the file as and tried the above commands
|
You don't need to write the full path. If your in the same repo you can just use
To build the docker image |
I tried only the command
Does 'if in the same repo' mean the same directory(Desktop) or the cloned openVirus repo? |
No, the same directory as the Dockerfile |
Can you try using the modified version of the get_papers repo? |
Can you please explain the process? I'm unable to understand. |
The project structure should be: | You then build your image by running the Dockerfile using the command
In the same folder as the Dockerfile. This will build the image and tag it as Once this is solved the next part is to run the image in a container. ################################################### To run the image
In the example shell script I have added a few things to this docker run command. First is the flag Second is the volume mount Finally I have added the command to be run by the get_papers container. In the example this is
The final run command being
|
Thank you for the explanation. I can understand the process now. |
I'm not sure how docker for windows differs from the linux version. It was my understanding that docker for windows ran in a shell. |
Yes, I'm using the command line to run the commands. Yes, the
|
Just checking you have capitalized the D in |
I'm in Windows, so I used the command
|
|
Does this mean I'm not using the docker client? |
Since you created the file in notepad windows has added the As to the docker client issue, I'm not sure anymore. When I tried using docker for windows (windows 8) my docker client ran with powershell but that might have changed in subsequent versions. I would have a separate folder for each of my projects. You seem to be treating docker as a specific program when its more of a general tool for (once you get past the teething issues) making your life easier |
Thank you. I referred a similar issue to remove Then, in command prompt, I gave the command
Is this the supposed output? Should the |
I'd leave it for now. It means that the |
Okay! Thank you so much. So ,far now, I have installed
Can you please elaborate the steps? |
Ok, so you can't split the lines up. They are all a part of the same command I split over several lines in order to make it more readable. I have tried to break down how the command works in this post (after the break)
Can you first try running the simplified command
and see what you get? |
Yes. I ran the command
|
Ok, so the command to do the search is (without line breaks)
In this query we're searching for |
I hope
@bauhuasbadguy Does this mean my path is wrong or Then, I used the command
|
No |
It worked! I gave the whole path instead of
without
in both command line and powershell. Both gave the similar result as below:
I hope I could now document these in respective wiki page... |
I am trying to install getpapers via Docker in Windows 10 Pro. I have installed Docker desktop successfully.
For installing getpapers, I have created a
Dockerfile
with respective commands as below:Then in command prompt, I gave the command
docker build -t get_paper .
but got the following output:I tried the command
docker build -t get_paper -f Dockerfile .
but got the same output:I created the
Dockerfile
in desktop and executed the command there.Is there anything else should be done before using Dockerfile like switching to the Windows containers..? Kindly guide me.
The text was updated successfully, but these errors were encountered: