Writing a bash script

Write a script that will be used to create docker images. Basically, the script is asking couple of question from the user and base on those questions like (what is the base image?), a dockerfile is created, a docker image in then build from it. The script check at the end to make sure that the image is created, then it should delete the dockerfile used.

Sample Solution