Building the auxiliary scripts

Each of these shell scripts is critical to the usability of the images we're building.

Follow these steps:

  1. In a file called build. sh, enter the following text and save it:
#/bin/bash
nvidia-docker build -t ch6 .
  1. Make the sure the script is executable by issuing this at the Terminal window:
chmod +x build.sh
  1. Execute the script to build the image:
./build.sh
  1. Open a build called clean.sh, add the following text, and save:
#/bin/bash
docker rmi ch6
  1. Make the sure the script is executable by issuing this at the Terminal window:
chmod +x clean.sh
  1. Only use the clean.sh script if you need to remove the container and rebuild from scratch.
..................Content has been hidden....................

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