-
Docker - Very beginning tutorialMiscellaneous 2021. 10. 6. 14:48
1. Tutorial
https://www.youtube.com/watch?v=bi0cKgmRuiA&t=0s&ab_channel=PythonEngineer
2. How to set up and use a virtual environment in your Docker
- https://stackoverflow.com/questions/48561981/activate-python-virtualenv-in-dockerfile
- https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
3. How to update the Image (after changing some of your codes, which requires re-building the image).
docker build -t your_image_name
4. Useful Tips
# How to create a virtual environment with a python's basic command:
python -m venv my_venv
ORpython3 -m venv my_venv
# How to check the latest n images on your docker (e.g., n=3)
docker ps -a -n 3
# How to make Docker container not automatically exit
docker run -d your_image_name sleep infinity
# How to enter in a Docker container already running
docker exec -it [container-id] bash
# How to copy files from Docker container to Local directory
abc
# How to run Jupyter Notebook on Docker?
abc
'Miscellaneous' 카테고리의 다른 글
SSH Key 생성하는 법 (0) 2021.10.21 Figure Images for Papers (0) 2021.08.11 Decompress tar files (0) 2021.06.22