ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 217 - XK0-005 discussion

Report
Export

A cloud engineer wants to delete all unused networks that are not referenced by any container. Which of the following commands will achieve this goal?

A.
docker network erase
Answers
A.
docker network erase
B.
docker network clear
Answers
B.
docker network clear
C.
docker network prune
Answers
C.
docker network prune
D.
docker network rm
Answers
D.
docker network rm
Suggested answer: C

Explanation:

Thedockercommand is used to manage Docker containers, images, networks, volumes, and other resources on a Linux system. Docker is a platform that allows users to run applications in isolated environments called containers. Docker also provides networking features that allow users to create and manage networks for containers.

To delete all unused networks that are not referenced by any container, the cloud engineer can use thedocker network prunecommand. This command will remove all networks that have no containers connected to them. The statement C is correct.

The statements A, B, and D are incorrect because they do not delete all unused networks. Thedocker network eraseanddocker network clearcommands do not exist. Thedocker network rmcommand deletes a specific network by name or ID, but not all unused networks.Reference: [How to Manage Docker Networks]

asked 02/10/2024
Madhanraj N
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first