exam questions

Exam 701-100 All Questions

View all questions & answers for the 701-100 exam

Exam 701-100 topic 1 question 31 discussion

Actual exam question from LPI's 701-100
Question #: 31
Topic #: 1
[All 701-100 Questions]

Which of the following tasks are completed by docker-compose down when it is used with additional parameters? (Choose two correct answers.)

  • A. Delete all volumes defined in the composer file.
  • B. Delete all containers defined in the composer file.
  • C. Delete all networks defined in the composer file.
  • D. Delete all images used in the composer file from the Docker nodes.
  • E. Delete all images built from the composer file from their registry.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
4 months, 2 weeks ago
Selected Answer: AD
AD is real correct. "docker-compose down" remove network and container. If you apply arguments, you can remove volumes and/or images.
upvoted 3 times
...
[Removed]
4 months, 2 weeks ago
Selected Answer: AC
docker-compose down Usage: docker-compose down [options] Options: --rmi type Remove images. Type must be one of: 'all': Remove all images used by any service. 'local': Remove only images that don't have a custom tag set by the `image` field. -v, --volumes Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. --remove-orphans Remove containers for services not defined in the Compose file -t, --timeout TIMEOUT Specify a shutdown timeout in seconds. (default: 10) Stops containers and removes containers, networks, volumes, and images created by up. By default, the only things removed are: Containers for services defined in the Compose file Networks defined in the networks section of the Compose file The default network, if one is used
upvoted 1 times
...
txui555
9 months, 3 weeks ago
BC would be the option by defaul BUT it can not be because it says "when it is used with additional parameters", so AD
upvoted 4 times
...
[Removed]
10 months, 3 weeks ago
B & C is correct From docker-compose help By default, the only things removed are: - Containers for services defined in the Compose file - Networks defined in the `networks` section of the Compose file - The default network, if one is used
upvoted 1 times
...
gilbertlelancelo
11 months, 2 weeks ago
In reference to https://docs.docker.com/compose/reference/down/ --rmi type Remove images. Type must be one of: 'all': Remove all images used by any service. 'local': Remove only images that don't have a custom tag set by the `image` field. -v, --volumes Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. Ans is A & D
upvoted 1 times
...
Blob21
1 year ago
A and D seem correct
upvoted 3 times
...
cecocenov
1 year, 3 months ago
A and D. Usage: down [options] Options: --rmi type Remove images. Type must be one of: 'all': Remove all images used by any service. 'local': Remove only images that don't have a custom tag set by the `image` field. -v, --volumes Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. --remove-orphans Remove containers for services not defined in the Compose file -t, --timeout TIMEOUT Specify a shutdown timeout in seconds. (default: 10)
upvoted 4 times
...
marmolada
1 year, 10 months ago
c is incorrect, networks are removed by default. You don't need to specify additional option to remove it
upvoted 2 times
...
matrpro
1 year, 11 months ago
Which of the following tasks are completed by docker-compose down when it is used with additional parameters?
upvoted 1 times
...
mucmike
2 years, 1 month ago
No, it´s A and C -v, --volumes Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.
upvoted 1 times
...
hmagroun
2 years, 3 months ago
The correct answer is B and C https://docs.docker.com/compose/reference/down/
upvoted 1 times
...
hector1978
2 years, 5 months ago
It does not delete the volumes, but it does delete the containers. the correct answer is B and C
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago