
Docker Commands
Quiz
•
Computers
•
University
•
Medium
Fred Lover
Used 1+ times
FREE Resource
Enhance your content
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker Network: Connects a running container to a network. If the network Id started with "8ac", which command would you use?
>docker network create swfnetwork
docker network connect swfnetwork 8ac
> docker network connect my_bridge_network container1
docker network rm swfnetwork
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does the command '>docker network ls' do?
A) Docker Network: Creates a new Docker network.
B) Docker: List only running containers
C) Docker Network: Lists Docker networks.
D) Docker: List IDs of final Docker images available locally
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker: Create a new image 'my_new_image' from 'my_container' with a custom message and author. Which command would you use?
> docker build -m "Added custom message" -a "John Wick" my_container my_new_image
> docker create -m "Added custom message" -a "John Wick" my_container my_new_image
> docker push -m "Added custom message" -a "John Wick" my_container my_new_image
> docker commit -m "Added custom message" -a "John Wick" my_container my_new_image
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker: Connect an already running container named "container1" to the bridge network named "my_bridge_network".
> docker network disconnect my_bridge_network container1
> docker network remove my_bridge_network container1
> docker network connect my_bridge_network container1
> docker network create my_bridge_network container1
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker: Search Docker Hub for all available "nginx" images.
> docker run -d --name secure_session --tmpfs home/data/sessions nginx
> docker create -p 6000:6379 nginx
> docker run -v /html:/usr/share/nginx/html nginx
> docker search nginx
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker: Create and start a MySQL container named "database" in detached mode.
> docker run -d --name database mysql
> docker create -d --name database mysql
> docker start -d --name database mysql
> docker run -d --name database postgres
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Docker: Create and run a container from the 'my_web_app' image on the network 'my_bridge_network' with port 8080 on the host mapped to port 80 in the container.
> docker run -v /html:/usr/share/nginx/html nginx
> docker run -d -p 8080:80 --name webserver nginx
> docker run -p 8080:80 --network my_bridge_network my_web_app
> docker run --name container1 --network my_bridge_network nginx
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
19 questions
Networking Concepts
Quiz
•
University
20 questions
Kuis II Proyek Open-Source
Quiz
•
University
20 questions
Network topologies
Quiz
•
8th Grade - University
17 questions
Test
Quiz
•
University
23 questions
Section 9: Networking (30-36)
Quiz
•
University
17 questions
2016-12
Quiz
•
University
25 questions
126 - 150 Linux
Quiz
•
University
20 questions
Computer Software and Hardware Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University