Then she/he will commit the container (freezing the container and turning it into a new image) and makes a new image. She/he will run the container and edit whatever she/he wants inside the container. To do that she or he will make a CONTAINER from the image on her/his machine using some docker commands.
#Jupyterlab docker image install#
She/He can do some new stuff (edit, add codes, delete codes, install some libraries, etc) on the docker image (which she/he has now on her/his machine). Once he/she PULL the Docker image from the hub (the image that you made) then the image is downloaded on his/her machine. you can ask your friend to install the docker on his/her machine and then PULL your image using some commands (we will go through some useful simple commands here). So far so good.ĭocker has a hub and you can upload your image into it, so it will be available from everywhere at any time.
![jupyterlab docker image jupyterlab docker image](https://pic1.zhimg.com/v2-0bc8ec8c6f4a7ae30aa69e12d430a39b_b.jpg)
Docker is installed on your machine and makes an Image from your work which is called Docker image (it takes a picture of your environment ).
![jupyterlab docker image jupyterlab docker image](https://amlanscloud.com/static/6a825b677720ec7ff6a3bd6e244a1785/da9f0/notebook.png)
Luckily, This technology is available, it is Docker! if you freeze all of the above-mentioned components then you have made an Image (docker image). What if you use a program that freezes everything (codes and programs) that you made on your computer?! Think about a technology that allows you to freeze all codes + libraries (you installed on your machine) + no matter what OS you use (mac, ubuntu, windows) + all files that you used on your Jupyter notebook interface. If your python versions are different, that can cause some other problems too. If you send your python codes to a friend, then he will have some problems using your codes! if his machine OS is different than yours, then he will need to install all the libraries that you have installed on your computer (a pretty time-consuming procedure). These libraries will just work on your machine (cuz they are installed on your machine using command prompt or terminal).
![jupyterlab docker image jupyterlab docker image](https://miro.medium.com/max/4588/1*74jsiUqeuDM_6At-f6x7zA.png)
Well, I found out if you use python on your machine, you always will need to download some libraries. I will answer some questions first, then we will go step by step to use docker technology and run python codes.