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:
- 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 .
- 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!
- 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.