0
0
Dockerdevops~10 mins

Image naming conventions (registry/image:tag) in Docker - Interactive Code Practice

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

Complete the code to specify the image with the official Docker Hub registry.

Docker
docker pull [1]/ubuntu:latest
Drag options to blanks, or click blank then click option'
Aregistry.hub.docker.com
Bhub.docker.com
Cdocker.io
Ddockerhub
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dockerhub' which is not a valid registry prefix.
Using 'hub.docker.com' which is a website, not the registry name.
2fill in blank
medium

Complete the code to tag an image with a specific version.

Docker
docker tag myapp [1]/myrepo/myapp:1.0
Drag options to blanks, or click blank then click option'
Amyregistry.com:5000
Bmyregistry
Cmyregistry.com
Dmyregistry:5000
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the port number when required.
Using invalid registry names without domain format.
3fill in blank
hard

Fix the error in the image name to correctly specify the tag.

Docker
docker pull alpine[1]latest
Drag options to blanks, or click blank then click option'
A:
B/
C_
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using slash or dash instead of colon to separate tag.
Omitting the colon causes Docker to treat 'latest' as part of the image name.
4fill in blank
hard

Fill both blanks to create a valid image name with registry and tag.

Docker
docker push [1]/[2]:stable
Drag options to blanks, or click blank then click option'
Aregistry.example.com
Bmyapp
Cappimage
Dexample.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'example.com' without 'registry.' prefix if that is the registry.
Confusing image name with registry domain.
5fill in blank
hard

Fill all three blanks to create a full image name with registry, repository, and tag.

Docker
docker pull [1]/[2]/[3]:v2
Drag options to blanks, or click blank then click option'
Aregistry.io
Blibrary
Cnginx
Ddockerhub
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dockerhub' which is not a valid registry name.
Mixing up repository and image names.