Git Product home page Git Product logo

docker_python's Introduction

docker_python

docker cointainer with availaible jupyter and python3 support

REQUIREMENTS:

docker

centos:7(cointainer image)

docker-compose

STEPS:

  1. git clone https://github.com/gautamnankani/docker_python.git

Go to the folder

  1. cd <folder_name_that you_cloned>

To build the image(REQUIREMENT: INTERNET)

  1. docker build -t <image_name:tag> .

    eg-

    docker build -t python_img:v1 .

    #in case any error try running it multiple time, NOTE: running it again start the process from the point where it left earlier , this is possible because of caches it stores for every step it run

    #error/fail may be due to multiple reasons, it might be due to low internet speed and some other reasons but don't panic just run the same command again,

To run container using docker-compose, first ensure <image_name:tag> you gave to the image in 3rd step is same in docker compose else change it

  1. docker-compose up -d

To set up password for your jupyter notebook, use these 2 command only after first launch, the password will be permanently set thereafter

  1. use below to commands to set a password for jupyter-notebook

    a) docker exec $(docker-compose ps -q) python3 pass.py <password_you want to set>

    b) docker-compose restart

    #$(docker-compose ps -q) here give the running container id you just launch, you can write manually your container_name here

    #Also note that you container must be running to set password inside it

  2. Now you can browse for "localhost:8888" at you base system browser and use the password you set in 5th step to login

If you did not set password:-

#you can still access jupyter using the url from inside the docker container #run docker using: docker-compose up #and copy the URL from the container itself

docker_python's People

Contributors

gautamnankani avatar

Stargazers

SHIVAM SHIV avatar

Watchers

James Cloos avatar  avatar

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.