Dockerfile and a requirements.txt filedocker build -t nlp .docker tag nlp jmedero/nlp:fall2018docker push jmedero/nlp:fall2018Clone homework assignment and navigate to repo
Start docker: docker run -it -h docker -p 127.0.0.1:5000:5000 -v `pwd`:/home/appuser jmedero/nlp:fall2018 bash
-h docker: sets hostname of container to docker-p 127.0.0.1:5000:5000: binds container port 5000 to localhost 5000-v \`pwd\`:/home/appuser: puts the current directory into /home/appuserOn Windows: be sure to select that the C drive should be shared with Docker images. Then, create a folder that you want to use as the local storage location for Docker. In the example below, I've chosen C:/Users/richardw/Documents/fs/. Then, replace (3) above with the following:
docker run -it -h docker -p 127.0.0.1:5000:5000 -v C:/Users/richardw/Documents/fs:/home/appuser jmedero/nlp:fall2018 bashContent type
Image
Digest
Size
832.3 MB
Last updated
almost 8 years ago
docker pull jmedero/nlp:fall2018