Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andrew Tork Baker
    @atbaker
    Good morning OSCON! Use this chat room to ask questions about Exercise 2
    Andrew Tork Baker
    @atbaker
    Btw - people who get to this exercise early, let me know if you hit any bugs! That way I can fix and push updates before everyone else gets here
    gphilp
    @gregorphilp
    hi
    Im getting this error when trying to run my-python-app using the image I just built
    ubuntu@ip-172-31-42-198:~/github/docker-flask$ docker run -it --rm --name my-running-app my-python-app
    python: can't open file './your-daemon-or-script.py': [Errno 2] No such file or directory
    Andrew Tork Baker
    @atbaker
    @gregorphilp - that sounds like a problem with the CMD part of your Dockerfile. It should use a file that’s in the repo as part of the command
    gphilp
    @gregorphilp
    yeah, that file isnt there
    oh ok. I see
    I need to use app.py
    gphilp
    @gregorphilp
    ok cool
    ubuntu@ip-172-31-42-198:~/github/docker-flask$ docker run -it --rm --name my-running-app my-python-app
    should I be able to browse to that address?
    Andrew Tork Baker
    @atbaker
    @gregorphilp - You should be able to browse to the http://[your cloud server’s hostname]:5000
    gphilp
    @gregorphilp
    ok, I tried that...maybe just too slow
    Andrew Tork Baker
    @atbaker
    @gregorphilp - you may also need to pass a -p option to expose the container port to the host
    gphilp
    @gregorphilp
    -p 5000:80
    rmitz
    @rmitz
    Anyone seeing an issue with authentication failing on the final docker push?
    Andrew Tork Baker
    @atbaker
    @rmitz - did you tag your image in your namespace instead of atbaker?
    Sri Radhakrishna
    @sradhakrishna-rms
    @atbaker If I am using the cloud server should I pull down the Git repo for Flask locally?
    rmitz
    @rmitz
    ah, wasn't clear that was a global namespace
    Andrew Tork Baker
    @atbaker
    @sradhakrishna-rms - pull it down to the cloud server! :smile:
    Sri Radhakrishna
    @sradhakrishna-rms
    @atbaker ubuntu@ip-172-31-42-229:~/docker-flask$ python app.py .
    Traceback (most recent call last):
    File "app.py", line 1, in <module>
    from flask import Flask
    ImportError: No module named flask
    rmitz
    @rmitz
    The final push seems to be taking a few retries even from the cloud servers.
    Andrew Tork Baker
    @atbaker
    @sradhakrishna-rms - you need to run sudo pip install -r requirements.txt if you want to run the app outside of Docker
    Sri Radhakrishna
    @sradhakrishna-rms
    @atbaker requirements.txt was successful (no problems there).. running of teh actual app.py is failing..sorry, not a python guy
    H. Wade Minter
    @minter
    Was hoping that break would unstick this: Repository python already being pulled by another client. Waiting
    Thanks to @atbaker - did a "boot2docker restart" and it seems to have unstuck it!
    Benjamin Goh
    @masotime
    i'm now pushing to the docker hub. I have to say that it is pretty network intensive. When I push an image, I see that it is pushing many (what I assume are) "sub-images". Are these the "dependencies" for the main image / app?