Building the Docker container

We have the docker file built—we simply need to create and then run a build script to build this container for future use. Here are the steps to make that happen:

  1.  Place the following text in the Docker folder in a file called build.sh (ensure that this file is executable):
#/bin/bash
nvidia-docker build -t ch8 .
  1. Run the following command from your Terminal:
sudo ./build.sh

If all goes well, you should have a container that is ready to build the encoder recipe coming up next!

  1. By way of final step, create the clean.sh script in case we want to create a brand new container:
#/bin/bash
docker rmi ch8

Our environment is ready to go—let's use this environment in the next recipe to create encodings of the MNIST dataset.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.163.250