Skip to content
Snippets Groups Projects
Commit 35896a48 authored by Françoise Conil's avatar Françoise Conil
Browse files

Try a Docker hello world

If Python environment is not freely available.
parent 4d7a53db
No related branches found
No related tags found
No related merge requests found
Well done, now try a more complex scenario.
{
"title": "Hello Docker",
"description": "Kind of Docker hello world",
"difficulty": "Beginner",
"time": "1 minute",
"details": {
"steps": [
{
"title": "Step 1",
"text": "step1.md"
}
],
"intro": {
"text": "intro.md"
"courseData": "intro-course-data.sh",
"credits": "This course was inpired by [Docker and Makefiles example from Ben Hall](https://github.com/BenHall/katacoda-scenarios/tree/master/1)"
},
"finish": {
"text": "finish.md"
}
},
"environment": {
"uilayout": "terminal"
},
"backend": {
"imageid": "docker"
}
}
echo 'FROM busybox' >> Dockerfile
echo 'CMD ["echo", "hello world"]' >> Dockerfile
In this scenario you will learn how to launch a basic echo command in a simple docker container.
This scenario has a Dockerfile which defines a Docker container to output an hello world message.
The command `docker build -t fcodvpt/docker-hello-world .`{{execute}} will create a Docker image is a friendly tag _fcodvpt/docker-hello-world_ which we can use when starting a container based on the image.
The command `docker run fcodvpt/docker-hello-world`{{execute}} will run the container and display the message.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment