Wednesday 24 February 2016

Watch Starwars with Docker

ASCII Version of Starwars











Found in "Orchestrating Docker" by Shrikrishna Holla   - I love this book. Here is the code.
The Dockerfile

FROM ubuntu:14.04
MAINTAINER wkoertgen
RUN apt-get -y install telnet
CMD ["/usr/bin/telnet", "towel.blinkenlights.nl"]

Store it in a directory star_wars, open a terminal session in that location and type 

docker build -t starwars .

To watch Starwars type docker run -it starwars 

This Star Wars tribute was created by Simon Jansen, Sten Spans, and Mike Edwards. It is really funny. 

















When you've had enough, hold Ctrl + ]. You will be given a prompt where you can type close to exit.

By the way an excelllent demonstration of the CMD instruction.


No comments: