0
0
Dockerdevops~10 mins

Docker Hub as image registry - Interactive Code Practice

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

Complete the command to log in to Docker Hub.

Docker
docker [1]
Drag options to blanks, or click blank then click option'
Alogin
Blogout
Cpush
Dpull
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker push' instead of 'docker login' to sign in.
Trying 'docker logout' when you want to sign in.
2fill in blank
medium

Complete the command to push a Docker image named 'myapp' to Docker Hub under user 'alice'.

Docker
docker push alice/[1]
Drag options to blanks, or click blank then click option'
Alatest
Bcontainer
Cimage
Dmyapp
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' as the image name instead of the actual image name.
Confusing container names with image names.
3fill in blank
hard

Fix the error in the command to tag a local image 'app' for Docker Hub user 'bob' with tag 'v1'.

Docker
docker tag app [1]/app:v1
Drag options to blanks, or click blank then click option'
Aalice
Bbob
Capp
Dv1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'alice' instead of the correct username 'bob'.
Using the tag 'v1' as the username.
4fill in blank
hard

Fill both blanks to pull the image 'nginx' with tag 'stable' from Docker Hub.

Docker
docker [1] nginx:[2]
Drag options to blanks, or click blank then click option'
Apull
Bpush
Cstable
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'pull' to download images.
Using 'latest' tag instead of 'stable' when specified.
5fill in blank
hard

Fill all three blanks to build a Docker image from 'Dockerfile' and tag it for user 'carol' with name 'webapp' and tag 'v2'.

Docker
docker build -t [1]/[2]:[3] .
Drag options to blanks, or click blank then click option'
Acarol
Bwebapp
Cv2
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' tag instead of 'v2'.
Mixing up username and image name positions.