A Docker Image with multiple languages installed. Useful as an alternative to creating a bunch of temp
or test
files when experimenting with a language. Simply book up the container and do your code experiments inside it. Exit the container when done, leaving no files for you to go and clean up later :)
Prereq: Before you begin, make sure you have installed Git and Docker.
- Clone the repository with
git clone https://github.com/programming-liftoff/docker-playground.git
- cd into the directory by typing
cd docker-playground/
- Build the image by typing
docker build -t playground:latest .
- Start a bash shell in the container by typing
docker run --rm -it playground
At the beginning of the Dockerfile, some enviroment variable are set with the following lines:
ENV username andrew
ENV password pass
ENV rootpassword toor
When the container loads a shell, it will load to user andrew
, with the password set to pass
. The password for the root user is set to toor
.
If you wish to change these values, simply change them in this one place and rebuild the image with docker build -t playground:latest .
to update the container's settings.