Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync folders changing warning using docker #5

Open
bpearson opened this issue May 24, 2018 · 0 comments
Open

Sync folders changing warning using docker #5

bpearson opened this issue May 24, 2018 · 0 comments

Comments

@bpearson
Copy link

bpearson commented May 24, 2018

When using docker, vagrant complains about sync folders changing when starting a container that has already been provisioned, I believe it stems from this line:

playbook_path = Pathname.new(File.dirname(config.playbook)).expand_path(@machine.env.root_path)

What happens is vagrant compares fresh to cached and Pathname.new leaves a little bit at the start (#Pathname: ) which makes the comparison fail. I think one way to fix it would be to wrap File.expand_path around Pathname.new, but not 100% sure.

Steps to replicate...

  1. Create a vagrantfile that uses docker with ansible installed locally.
  2. Create and start the container with vagrant up.
  3. Stop the container with vagrant halt.
  4. Start the container up again with vagrant up and the message appears...

==> test: Vagrant has noticed that the synced folder definitions have changed.
==> test: With Docker, these synced folder changes won't take effect until you
==> test: destroy the container and recreate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant