Skip to content
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

Docker Compose Up script #1

Closed
sultanadeel opened this issue Sep 20, 2017 · 40 comments
Closed

Docker Compose Up script #1

sultanadeel opened this issue Sep 20, 2017 · 40 comments

Comments

@sultanadeel
Copy link

Hi, i installed Docker Toolbox for my Windows machine and then cloned the repository to a local folder. Subsequently, when i am trying to build the docker container using docker-compose up command, it's not executing the script. Attached is the snapshot of the command prompt
docker-compose

@mschermann
Copy link
Owner

Can you run docker-compose --version. Also run docker-compose up --help. Do you get error messages?

@mschermann
Copy link
Owner

Also, check this out: docker/compose#5044 (comment)

@sultanadeel
Copy link
Author

sultanadeel commented Sep 20, 2017 via email

@mschermann
Copy link
Owner

Check this please: #1 (comment)

@mschermann
Copy link
Owner

mschermann commented Sep 21, 2017

Clone again and see if it works now @sultanadeel

@PriyankaN22
Copy link

Hi Professor,
I am also facing the issue with docker-compose up. Please refer the screenshot below.

docker issue

I checked few threads for resolution, it seems I need to reset factory defaults every time to get docker to run.

I just wanted to check if you know any other resolution for this.

Appreciate your help!

-Priyanka

@sultanadeel
Copy link
Author

sultanadeel commented Sep 21, 2017 via email

@mschermann
Copy link
Owner

@priyankad228 make sure that you run the docker-compose up in the directory where you cloned the repository to (Make sure that the directory contains the docker-compose.yml)

@mschermann
Copy link
Owner

mschermann commented Sep 21, 2017

@sultanadeel

  1. Create a new folder
  2. Create a file in this folder called 'Dockerfile'
  3. Copy the following lines into this file
FROM python:3
RUN apt-get update -y 
RUN apt-get install -y apt-utils
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
  1. Run the following command in this folder:
    docker . build

What is the output?

@sultanadeel
Copy link
Author

Hi Dr Schermann, i followed the above steps, created a folder with a text file having the above script, and then used Docker Terminal to run docker . build command. However, it is not able to read the file somehow. I am trying to read the file using the build command. Thanks

@mschermann
Copy link
Owner

@sultanadeel What is the error message?

@sultanadeel
Copy link
Author

sultanadeel commented Sep 21, 2017 via email

@mschermann
Copy link
Owner

@sultanadeel no image?

@sultanadeel
Copy link
Author

capture 2

@mschermann
Copy link
Owner

The command is docker . build. Please note the spaces before and after the .

@PriyankaN22
Copy link

I installed Docker Toolbox and executed the commands using docker terminal, the error I was getting earlier is resolved. Now I get the same error as Adeel is getting. I followed the instructions and got this.
image

@mschermann
Copy link
Owner

Ha, dang. I was too quick. The command is docker build . Sorry!

@bhargavre
Copy link

Hello Professor,

I am also facing similar issues and have been following your steps suggested to Adeel and Priyanka
In response to your last comment, i received the following error.

image

@mschermann
Copy link
Owner

@bhargavre Are you in the same directory? Have you name the file Dockerfile without any endings?

@bhargavre
Copy link

Yes. I created a file "Dockerfile" and am in the same directory.

@mschermann
Copy link
Owner

try the following docker build . --file ./Dockerfile
Also, check the Dockerfile - typically Windows adds a file-ending such as .txt

@bhargavre
Copy link

So the file is a text file. Should I save it with another extension?
This time i got the below message

image

@mschermann
Copy link
Owner

@bhargavre That is what I thought. Try docker build . --file ./Dockerfile.txt

@bhargavre
Copy link

Similar message

image

@bhargavre
Copy link

oops sorry.

image

@mschermann
Copy link
Owner

@bhargavre It seems that you have copied all the code in one line? This should be separate lines

FROM python:3
RUN apt-get update -y 
RUN apt-get install -y apt-utils
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

@bhargavre
Copy link

I changed it to separate lines and then worked only till Get 7:
The following message appeared

image

@mschermann
Copy link
Owner

mschermann commented Sep 21, 2017

But this is just a warning...

Try the original dataviz_docker again...

@bhargavre
Copy link

Yes i have access to the system,

and below is the entire message

image

@mschermann
Copy link
Owner

ok.. it seems to work. Now, follow the instructions here: https://github.com/mschermann/dataviz_docker

@bhargavre
Copy link

So now the last step it reached was 7/26. and below is the message

image

@mschermann
Copy link
Owner

@bhargavre I guess this is a windows issue. Try to run it in the Docker Quickstart Terminal that comes with the Docker installation on Windows...

@bhargavre
Copy link

This is actually on the Docker Quickstart Terminal itself.

So when we launch the terminal. i enter cmd and follow the instructions

@mschermann
Copy link
Owner

I released a new version, pull, and try again.

@PriyankaN22
Copy link

I tried with new version. It's still producing the same error as Bhargav mentioned

@mschermann
Copy link
Owner

If you are around, just stop by. Otherwise, install jupyter without the docker (see the FAQ) for now.

@PriyankaN22
Copy link

got this error at the end

image

@thomasdere
Copy link

Windows Users ...
Good news and bad news:
Good news is that I finally was able to install it on Windows 10 after initially receiving the same errors you have listed above.
Bad news is that Windows 10 "Home" Edition appears to be incompatible with Docker. After upgrading from Windows 10 "Home" to Windows 10 "Pro", I was able to get everything to work. Unfortunately, Windows 10 Pro upgrade is not free and ranges from $179-$199. Hopefully the Professor has some alternatives for Windows Users.
The other error where I ran into difficulty was at Step 1. "Clone this repository to a folder". This step didn't appear to extract all of the files to the directory provided. The fix for me was to create a zip file and unzip the contents instead of using the clone method of the git repository. Once you confirm that the individual files are there, you can then run the "docker-compose up" command to complete the installation.
Lastly, the provided URL didn't work with the "0.0.0.0", but I was able to replace that portion with "localhost" and the jupyter notebook screen then appeared in the browser.

@mschermann
Copy link
Owner

To all Windows users: please try to install jupyter as described here: http://jupyter.org/install.html

@mschermann
Copy link
Owner

@PriyankaN22 try this: docker/labs#215 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants