A
A
Alexey Anisimov2017-10-13 06:25:23
NFS
Alexey Anisimov, 2017-10-13 06:25:23

Vagrant parallels/boot2docker nfs how to properly set up on Mac OSX?

Good afternoon.
How to properly configure vagrant parallels/boot2docker nfs file sharing?
I'm running on a MacBook Pro 2017
Doesn't work through NFS


# -*- mode: ruby ​​-*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "parallels/boot2docker"
config.vm.provider "parallels" do |vb|
vb.memory = 4096
vb.cpus = 2
end
config.vm.network "private_network", ip: "192.168.55.10"
config.vm.network "forwarded_port", guest: 8888, host: 8888, host_ip: "127.0.0.1 "
config.vm.network "forwarded_port", guest: 3307, host: 3307, host_ip: "127.0.0.1"
config.vm.synced_folder ".", "/var/www/app", id: "base", nfs : true
config.vm.provision "docker"
config.vm.provision"
config.vm.provision "shell", inline: "cd /var/www/app && docker-compose build && docker-compose up -d"
end

Errors are like this

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.

Prescribed the nolock option - it did not help. I did it
through Rsync, but there sharing is only in one direction, how to make two-way sharing did not figure it out.

# -*- mode: ruby ​​-*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "parallels/boot2docker"
config.vm.provider "parallels" do |vb|
vb.memory = 4096
vb.cpus = 2
end
config.vm.network "private_network", ip: "192.168.55.10"
config.vm.network "forwarded_port", guest: 8888, host: 8888, host_ip: "127.0.0.1 "
config.vm.network "forwarded_port", guest: 3307, host: 3307, host_ip: "127.0.0.1"
config.vm.synced_folder "./", "/var/www/app", type: "rsync", id: "base", owner: "docker", group: "docker", rsync__args: ["--verbose",
config.vm.provision "docker_compose"
config.vm.provision "shell", inline: "cd /var/www/app && docker-compose build && docker-compose up -d"
end

I do composer install, vendors are not loaded on the host machine, only inside the virtual machine.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question