@@ -24,8 +24,8 @@ OpenFermion (or any of its plugins) using the standard installation.
2424
2525You first need to install [ Docker] ( https://www.docker.com/ ) .
2626Once Docker is installed, open a command line terminal and check the list
27- of running virtual machines with ` docker-machine ls `
28- Assuming this is the firt time Docker has been run, the list should be empty.
27+ of running virtual machines with ` docker-machine ls ` .
28+ Assuming this is the first time Docker has been run, the list should be empty.
2929Create a virtual machine by running:
3030```
3131docker-machine create --driver virtualbox default
@@ -57,9 +57,9 @@ Dockerfile for building the OpenFermion image (docker/dockerfile) and run
5757docker build -t openfermion_docker .
5858```
5959
60- where "openfermion_docker" is just an arbitrary name for our docker container .
60+ where "openfermion_docker" is just an arbitrary name for our docker image .
6161What the Dockerfile does is to start from a base image of Ubuntu and install
62- OpenFermion, its plugins and the necessary applications needed for running these
62+ OpenFermion, its plugins, and the necessary applications needed for running these
6363programs. This is a fairly involved installation and will take some time
6464(perhaps up to thiry minutes depending on the computer). Once installation has
6565completed, run the image with
@@ -69,15 +69,16 @@ docker run -it openfermion_docker
6969```
7070
7171With this command the terminal enters a new environment which emulates Ubuntu with
72- OpenFermion and accessories installed. The freshly built image is ready to run any program that uses
73- OpenFermion. To transfer files from somewhere on the disk to the Docker
72+ OpenFermion and accessories installed. To transfer files from somewhere on the disk to the Docker
7473container, first run ` docker ps ` in a seperate terminal from the one running
75- docker . This returns a list of running containers, e.g.:
74+ Docker . This returns a list of running containers, e.g.:
7675
76+ ```
7777+CONTAINER ID IMAGE COMMAND CREATED
7878+STATUS PORTS NAMES
79- +3cc87ed4205b 5a67a4d66d05 "/bin/bash" 5 seconds ago
80- +Up 5 seconds competent_feynman
79+ +3cc87ed4205b 5a67a4d66d05 "/bin/bash" 2 hours ago
80+ +Up 2 hours competent_feynman
81+ ```
8182
8283In this example, the container name is "competent_feynman" (the name is
8384random and generated automatically). Using this name, one can then copy
@@ -95,18 +96,16 @@ remotely into the Docker container.
9596
9697## Running Jupyter notebook with Docker backend
9798
98- To run Jupyter notebook in a browser with a Docker container running as a
99- backend, first check the ip address of the virtual machine by running
99+ To run Jupyter notebooks (such as our demos) in a browser with a Docker container
100+ running as a backend, first check the ip address of the virtual machine by running
100101
101102```
102103docker-machine ip default
103104```
104105
105106where "default" can be replaced by the name of whichever virtual machine whose
106- ip address you want to check.
107-
108- Assuming the Docker image for OpenFermion is already built and is called
109- openfermion_docker, run the container with an additional -p flag:
107+ ip address you want to check. Assuming the Docker image for OpenFermion is
108+ already built and is called openfermion_docker, run the container with an additional -p flag:
110109
111110
112111```
@@ -115,9 +114,8 @@ docker run -it -p 8888:8888 openfermion_docker
115114
116115Here the numbers 8888 simply specifies the port number through which the Docker
117116container communicates with the browser. If for some reason this port is not
118- available, any other number in 8000-9000 will do.
119-
120- When the terminal enters the Docker container, run Jupyter notebook by
117+ available, any other number in 8000-9000 will do. When the terminal enters the Docker container,
118+ run a Jupyter notebook with:
121119
122120```
123121jupyter-notebook --allow-root --no-browser --port 8888 --ip=0.0.0.0
@@ -142,5 +140,5 @@ Open a browser and type in the address line
142140where [ virtual machine ip] is extracted from ` docker-machine ip ` and 8888 is the port
143141number (or any other port number that one specifies previously). A webpage
144142asking for token string should appear. Use the token string obtained from before to
145- enter Jupyter Notebook . If logged in successfully, you should be able to freely
143+ enter Jupyter notebook . If logged in successfully, you should be able to freely
146144navigate through the entire Docker image and launch any Jupyter notebook in the image.
0 commit comments