diff --git a/docker/README.md b/docker/README.md index 9839f7d..a66bb15 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,8 +1,7 @@ # Hands-on Machine Learning in Docker -This is the Docker configuration which allows you to run and tweak the book's notebooks without installing any dependencies on your machine!
-OK, any except `docker` and `docker-compose`. +This is the Docker configuration which allows you to run and tweak the book's notebooks without installing any dependencies on your machine!
OK, any except `docker` and `docker-compose`.
And optionally `make`.
And a few more things if you want GPU support (see below for details). ## Prerequisites @@ -20,6 +19,8 @@ The first option is to pull the image from Docker Hub (this will download over 2 $ docker pull ageron/handson-ml2 ``` +**Note**: this is the CPU-only image. For GPU support, read the GPU section below. + Alternatively, you can build the image yourself. This will be slower, but it will ensure the image is up to date, with the latest libraries. For this, assuming you already downloaded this project into the directory `/path/to/project/handson-ml2`: ```bash @@ -29,17 +30,17 @@ $ docker-compose build This will take quite a while, but is only required once. -After the process is finished you have a `handson-ml2` image, that will be the base for your experiments. You can confirm that by running the following command: +After the process is finished you have an `ageron/handson-ml2:latest` image, that will be the base for your experiments. You can confirm that by running the following command: ```bash $ docker images -REPOSITORY TAG IMAGE ID CREATED SIZE -handson-ml2 latest 6c4dc2c7c516 2 minutes ago 6.49GB +REPOSITORY TAG IMAGE ID CREATED SIZE +ageron/handson-ml2 latest 6c4dc2c7c516 2 minutes ago 6.49GB ``` ### Run the notebooks -Still assuming you already downloaded this project into the directory `/path/to/project/handson-ml2`, run the following commands to start the Jupyter server inside the container (it is also named `handson-ml2`, just like the image): +Still assuming you already downloaded this project into the directory `/path/to/project/handson-ml2`, run the following commands to start the Jupyter server inside the container, which is named `handson-ml2`: ```bash $ cd /path/to/project/handson-ml2/docker @@ -50,11 +51,11 @@ Next, just point your browser to the URL printed on the screen (or go to