Hi all,
As part of the #OSDC course, we learned how to create docker containers for various project environments.
You can install the Docker platform from Docker official site.
For python projects, we used the Ubuntu images for python projects, and mono for .net framework on linux OS.
To create a docker container, you can use the Docker Run command that automatically installs the proper OS, ie:
docker run -it -w /opt --name ubuntu:22.10
or you can clone a project from GitHub and then create a container as follows (this is for python 3.11 project):
docker run -it --name -w /opt -v :/opt python:3.11 bash
To run the docker with the newly created container, use the following command:
docker start -i
The i stands for interactive mode.
To install all required packages for the project, type the following command from within the container:
pip install -r && pip install -e .
That's it.. Your all set to go..
Top comments (0)