- Once logged into the Docker Playground, on the left tab hit
Create new instance
. This process may take a minute or two as resources are allocated.
- Once the instance has been created, you should see a web terminal.
- In the terminal, clone this repository by running
git clone https://github.com/ejach/DockerExample.git
- Next,
cd
into the git directory by running cd DockerExample
- Create a Docker image by running
docker build . -t dockerexample
- After the image is built, then run your newly created image by entering
- You should be met with output that says:
Hello, World!