Simple Bash script who install docker, it will create a 'hello-world' container and delete him and the image when he is succesfully created. Hello-world container is just a test container who is useless to keep.
First you have to give running permission to the script, after that you run this one.
$ sudo chmod +x script.sh
$ sudo ./script.sh