After building the Anaconda data science environment with Docker, as I proceeded with the analysis, I wanted to add a package. This is a memo when adding a Python package to the Docker container that has already been built.
$ docker exec -it <container> bash
pip install <package>
Move to the folder where the Dockerfile built in the data science environment is stored, start Dockerfile with Sublime text, and add it.
$ subl Dockerfile
docker build
to update the docker image all at once.Recommended Posts