Description
First build the docker image, type these command in the base directory:
docker build -t foodai .
And run the docker image:
docker run -it -p 8888:8888 -v $PWD/foodai:/notebooks/foodai foodai bash
Remove all images and containers
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rm $(docker images -q)
While using data volume containers, you have to remove container with -v flag as docker rm -v. If you don't use the -v flag, the volume will end up as a dangling volume and remain in to the local disk
To delete all dangling volumes, use the following command
docker volume rm `docker volume ls -q -f dangling=true`
conda env create -f environment.yml
source activate foodai
source deactivate foodai