{"id":19989195,"url":"https://github.com/clamytoe/datasci-env","last_synced_at":"2026-03-19T13:00:59.006Z","repository":{"id":84639552,"uuid":"533820721","full_name":"clamytoe/datasci-env","owner":"clamytoe","description":"Miniconda3 for Data Science docker setup","archived":false,"fork":false,"pushed_at":"2022-12-04T00:17:31.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T11:50:04.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clamytoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-07T15:13:26.000Z","updated_at":"2022-09-19T21:32:15.000Z","dependencies_parsed_at":"2023-07-21T04:31:33.760Z","dependency_job_id":null,"html_url":"https://github.com/clamytoe/datasci-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fdatasci-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fdatasci-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fdatasci-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Fdatasci-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamytoe","download_url":"https://codeload.github.com/clamytoe/datasci-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430312,"owners_count":19961635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T04:45:47.330Z","updated_at":"2026-03-03T22:02:19.915Z","avatar_url":"https://github.com/clamytoe.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup Environment using Docker \n\nThe following guide is for facilitating an environment using [Docker](https://www.docker.com/). \n\n## What do I gain by setting up a docker container? \n\n- A portable and isolated environment that you can update and destroy once you are done. \n- You can re-use it for any ML Applications that you might want to develop without the worry of the OS you are running on. \n\n\n### Ok, I'm sold, what should I do now? \n\n## Pre-Requirements\n\n- Install Docker based on the OS you are using. \n \n    Reference: [Docker - Get Started](https://www.docker.com/get-started)\n\n## Build your docker image\n\nOnce you have Docker installed, Follow the next steps to build custom container from the miniconda3 image. \n\n1. Create your image.\n\nFrom within the folder of this repo, run the following command:\n\n```\ndocker build -t clamytoe/datasci .\n```\n\n**NOTE**: You can name your image whatver you like.\nFor this example I've chosen *datasci* because I'm going to use it for general DataScience work.\n\n2. Run your image.\n\nExecute the following command from the root folder of where you want Jupyter notebook to start from.\nIf you are working on the ml-zoomcamp exercises, you couls start from the **mlbookcamp-code** directory from within its repo.\n\nI'm going to start from my user's home directory so that I can navigate to any folder on my `C:\\` drive.\nI'm on a Windows system, so my command will be different.\nIf you're on a *Nix system, use `$PWD` instead of `%cd%`.\n\n```\ndocker run -p 8080:8080 -p 8888:8888 -p 6006:6006 -v %cd%:/notebooks --name datasci clamytoe/datasci\n```\n\nOnce your container is running, open up a browser to [localhost:8888](http://localhost:8888)\n\n\u003e **NOTE**: Make sure you use the **Quit** button on the upper right of the notebook when you're done to stop the container.\n\n3. How to restart your container.\n\nThe next time that you need to run your container, you can start it with its container name.\nIn our case, we named it **datasci** with this flag: `--name datasci`\n\n```\ndocker start datasci\n```\n\nIf you didn't name yours, you can find the random name that it was given with the following command:\n\n```\n\u003edocker ps -a\nCONTAINER ID   IMAGE                     COMMAND                  CREATED              STATUS\n    PORTS     NAMES\n89775a6b93fa   datasci                   \"/root/run_jupyter.sh\"   About a minute ago   Exited (0) About a minute ago             charming_jemison\n```\n\nAs you can see, the name of my container is **charming_jemison** so I can restart my contrainer like a so:\n\n```\ndocker start charming_jemison\n```\n\n\u003e **NOTE**: You can also start the image by its container id.\nOnly the first several characters are needed:\n```\ndocker start 8977\n```\n\nOpening a browser to `[localhost:8888](http://localhost:8888) will bring my to its running notebook.\n\nIf you are using **Docker Desktop**, you can also restart your container from there by clicking ont he little play button under *Actions* in the Containers section.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Fdatasci-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamytoe%2Fdatasci-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Fdatasci-env/lists"}