0
0
Dockerdevops~10 mins

Verifying installation with docker run hello-world - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to run the Docker hello-world image.

Docker
docker [1] hello-world
Drag options to blanks, or click blank then click option'
Apull
Brun
Cpush
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker build' instead of 'docker run'.
Using 'docker pull' which only downloads the image but does not run it.
2fill in blank
medium

Complete the command to pull the hello-world image explicitly before running it.

Docker
docker [1] hello-world
Drag options to blanks, or click blank then click option'
Apull
Brun
Cstart
Dexec
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker run' when the task asks to pull the image only.
Using 'docker exec' which runs commands inside a running container.
3fill in blank
hard

Fix the error in the command to run the hello-world image.

Docker
docker [1] hello-world
Drag options to blanks, or click blank then click option'
Aruns
Bstart
Crunning
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'runs' instead of 'run'.
Using 'start' which is for starting stopped containers, not running new ones.
4fill in blank
hard

Fill both blanks to complete the command that runs the hello-world image and removes the container after it exits.

Docker
docker [1] --rm [2]
Drag options to blanks, or click blank then click option'
Arun
Bhello-world
Cstart
Dcontainer
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'run'.
Using 'container' instead of the image name.
5fill in blank
hard

Fill all three blanks to run the hello-world image in detached mode with a custom name.

Docker
docker [1] -d --name [2] [3]
Drag options to blanks, or click blank then click option'
Arun
Bmy-hello
Chello-world
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'run'.
Mixing up the container name and image name.