0
0
Dockerdevops~10 mins

FROM instruction for base image in Docker - Interactive Code Practice

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

Complete the Dockerfile to specify the base image as Ubuntu 20.04.

Docker
FROM [1]
Drag options to blanks, or click blank then click option'
Aubuntu:20.04
Bnode:14
Cpython:3.9
Dalpine:latest
Attempts:
3 left
💡 Hint
Common Mistakes
Using an unrelated base image like 'node:14' when Ubuntu is required.
Forgetting the version tag after the image name.
2fill in blank
medium

Complete the Dockerfile to use Alpine Linux as the base image.

Docker
FROM [1]
Drag options to blanks, or click blank then click option'
Adebian:10
Balpine:3.15
Cubuntu:latest
Dcentos:7
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a base image that is not Alpine Linux.
Using 'alpine:latest' when a specific version is preferred.
3fill in blank
hard

Fix the error in the Dockerfile base image specification.

Docker
FROM [1]
Drag options to blanks, or click blank then click option'
Apython3.8
Bpy:3.8
Cpython-3.8
Dpython:3.8
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'python3.8' without a colon.
Using hyphens instead of colons in the tag.
4fill in blank
hard

Fill both blanks to specify a Node.js base image with version 16 and use the slim variant.

Docker
FROM [1]:[2]-slim
Drag options to blanks, or click blank then click option'
Anode
B14
C16
Dalpine
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the version numbers or using the wrong image name.
Using 'alpine' instead of 'slim' for the variant.
5fill in blank
hard

Fill all three blanks to specify a Python base image with version 3.10 and the slim-buster variant.

Docker
FROM [1]:[2]-[3]
Drag options to blanks, or click blank then click option'
Apython
B3.10
Cslim-buster
Dbuster
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'buster' instead of 'slim-buster' for the variant.
Mixing up the order of version and variant.