modify saving

if I make some modifications and I want to save these modifications to continue use them next time, we should save the modifications in the containers.

for example, I install the jupyer inside a container, like this:

1
pip install jupyter

we should commit the container to an image,

1
docker commit <container_id_or_name> <new_image_name>:<tag>

for example:

1
2
docker commit my_running_container jupyter_notebook_image:v1

when next time, run:

1
2
docker run -it -p 8888:8888 --name my_jupyter_container jupyter_notebook_image:v1

docker command line homepage

click here to come back to docker command line homepage.