Each of these shell scripts is critical to the usability of the images we're building.
Follow these steps:
- In a file called build. sh, enter the following text and save it:
#/bin/bash
nvidia-docker build -t ch6 .
- Make the sure the script is executable by issuing this at the Terminal window:
chmod +x build.sh
- Execute the script to build the image:
./build.sh
- Open a build called clean.sh, add the following text, and save:
#/bin/bash
docker rmi ch6
- Make the sure the script is executable by issuing this at the Terminal window:
chmod +x clean.sh
- Only use the clean.sh script if you need to remove the container and rebuild from scratch.