BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 305-300 Exam - Topic 1 Question 61 Discussion

Posted by Elliot on Oct 16, 2026 at 09:08 AM

Which functionality is provided by Vagrant as well as by Docker? (Choose three.)

Suggested Answer: A, C, D

Both Vagrant and Docker can share directories from the host file system to a guest. This allows the guest to access files and folders from the host without copying them. Vagrant uses the config.vm.synced_folder option in the Vagrantfile to specify the shared folders1. Docker uses the -v or --volume flag in the docker run command to mount a host directory as a data volume in the container2.

Both Vagrant and Docker can download required base images. Base images are the starting point for creating a guest environment. Vagrant uses the config.vm.box option in the Vagrantfile to specify the base image to use1. Docker uses the FROM instruction in the Dockerfile to specify the base image to use2. Both Vagrant and Docker can download base images from public repositories or local sources.

Both Vagrant and Docker can apply changes to a base image. Changes are modifications or additions to the base image that customize the guest environment. Vagrant uses provisioners to run scripts or commands on the guest after it is booted1. Docker uses instructions in the Dockerfile to execute commands on the base image and create a new image2. Both Vagrant and Docker can save the changes to a new image or discard them after the guest is destroyed.

Vagrant and Docker differ in how they start system images. Vagrant starts system images as virtual machines by default, using a provider such as VirtualBox, VMware, or Hyper-V1. Docker starts system images as containers by default, using the native containerization functionality on macOS, Linux, and Windows2. Containers are generally more lightweight and faster than virtual machines, but less secure and flexible. Reference: 1: Vagrant vs. Docker | Vagrant | HashiCorp Developer 2: Vagrant vs Docker: Which Is Right for You? (Could Be Both) - Kinsta Web Development Tools


Get Premium 305-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
9 comments · newest first
TA
Tayna 3 days ago
B is definitely not right, they both use different defaults!
PA
Paulene 8 days ago
Wait, can Vagrant really share directories?
WI
Willie 13 days ago
Totally agree with A and C!
DO
Dottie 18 days ago
I thought Vagrant used VMs by default?
MA
Malinda 23 days ago
A, C, and D are correct!
GR
Gretchen 29 days ago
I thought Vagrant uses virtual machines by default, while Docker uses containers, so I'm confused about that part.
FI
Fidelia 1 month ago
I practiced a similar question, and I feel like both tools can apply changes to a base image, which could be option D.
LA
Layla 1 month ago
I'm not entirely sure, but I think both can download base images. That might be option C?
LA
Lavera 1 month ago
I remember that both Vagrant and Docker can share directories, so I think option A is definitely one of the answers.
0/2000 characters

Save Cancel