Brian Cain
94bb50fa7e
Add test for syncing folders with docker provider
2018-10-17 14:14:27 -07:00
Martin Jonas
238338d803
Deterministic host VM synced folder location for Docker provider to prevent broken sync after host VM shutdown
...
Fix for #10282
2018-10-17 11:28:24 -07:00
Brian Cain
4612619dc4
Fixup docker config update
2018-09-19 10:52:59 -07:00
Oleksiy Protas
166fe374b6
More explicit logging and 'dockerfile' option support
2018-09-19 10:25:37 -07:00
Oleksiy Protas
cbc69f5158
Build from git operation for docker
2018-09-19 10:24:09 -07:00
Oleksiy Protas
de6a1794c7
Config, validation and test
2018-09-19 10:24:09 -07:00
Oleksiy Protas
8d1b5fc1c9
Docu changes for building Docker images from git
2018-09-19 10:24:05 -07:00
Brian Cain
c2cff0dc07
Merge pull request #10100 from briancain/DOCKER-TOOLBOX
...
Convert windows paths for volume mounts on docker driver
2018-08-17 15:08:59 -07:00
Brian Cain
5d2d784ae7
( #9085 ) - Add test for converting windows paths
...
This commit adds a test for checking that a windows path for mounting a
volume in a container is properly converted into something that's
usable.
2018-08-08 10:30:04 -07:00
Matthew Olenik
428eb3ed93
Support Docker volume consistency for synced folders
...
Adds the `docker_consistency` option, which sets the Docker volume
consistency level. This can be used to greatly improved synced folder
performance, especially on macOS.
See for details: moby/moby#31047
2018-07-27 15:16:39 -07:00
Brian Cain
79e535a7ee
( #9622 ) Use SafeExec for docker-exec
...
This commit uses the internal helper SafeExec rather than using the
Kernel class directly. It also adds a test to ensure that if the `-t`
option is used, it will call SafeExec.
2018-05-02 14:23:50 -07:00
Isaac Freeman
de71626922
docker: use Kernel.system for docker-exec when -t is given
2018-04-18 17:50:47 -04:00
Josh Soref
1a5ddea9f4
Spelling fixes
...
* account
* addresses
* administrator
* afterwards
* because
* bridgeable
* capabilities
* capability
* checksum
* configuration
* configuration for
* configure
* criteria
* delimited
* delivered
* derivatives
* description
* detect
* directory
* display
* downloading
* during
* electric
* enabling
* encountered
* equivalent
* executable
* executed
* hashicorp
* hypervisor
* hyphens
* implementation
* incorporate
* inheritance
* initialize
* instance
* instead
* interactions
* invocable
* machine
* maximum
* message
* mounting
* overridden
* overwrite
* paramiko
* preparing
* provides
* provisioning
* recursively
* requested
* resetting
* retryable
* running
* satisfied
* searching
* sometimes
* specified
* successfully
* synced folders
* unauthorized
* underlying
* userprofile
* vagrant
* vagrantfile
* variable
* various
* version
* virtual
* windows
2018-03-14 14:41:04 +00:00
mihab
03178bbe04
Fixes #9085 : Cannot `up` a machine with Docker Toolbox and Git Bash
2018-03-01 21:38:39 +01:00
Dimitrios Kouzis-Loukas
51716c5ef0
fix for issue 8608
2017-08-27 23:56:47 -04:00
Chris Roberts
f660c19084
Error when compose and force_host_vm are enabled together
2017-08-22 11:36:26 -07:00
Chris Roberts
1c763cf5e6
Expand relative volume paths for compose on current cwd
2017-08-21 13:26:19 -07:00
Chris Roberts
3b4901a5b5
Split compose links if string values
2017-07-31 14:23:50 -07:00
Dimitrios Kouzis-Loukas
34d8ffb9b2
Fixing vagrant ssh issue 8705
...
Fixing vagrant issue https://github.com/mitchellh/vagrant/issues/8705
2017-06-21 10:23:34 -04:00
Harry Weppner
250e74cb79
fix check for `docker-compose`
2017-06-08 11:09:41 -07:00
Chris Roberts
27ca3ef831
Convert Windows paths in volumes if detected
2017-05-12 15:11:10 -07:00
Chris Roberts
36ecd40c52
Support optional detach and pass blocks through to execution.
2017-05-12 15:09:30 -07:00
Chris Roberts
6096bb299b
Only set image if option given. Do not apply when setting build options.
2017-05-12 15:09:30 -07:00
Chris Roberts
42c9042221
Deep merge configuration settings and set any extra options
2017-05-12 15:09:30 -07:00
Chris Roberts
9242a69545
Allow direct set of composition and ensure basic types are used
2017-05-12 15:09:30 -07:00
Chris Roberts
4673bbb907
Properly define service build within composition. Full cleanup on destroy.
2017-05-12 15:09:30 -07:00
Chris Roberts
b333e5cd82
Fix argument construction when adding dockerfile path
...
Fixes #7914
2017-05-12 15:09:30 -07:00
Chris Roberts
d1c1c175a0
Support modifications of composition outside services
2017-05-12 15:09:30 -07:00
Chris Roberts
d4bfade19f
Include documentation on accessor in docker provider configuration
2017-05-12 15:09:30 -07:00
Chris Roberts
deba93ce5c
Add optional support for docker-compose
...
Adds configuration switch to enable using docker-compose
to create and manage docker containers.
2017-05-12 15:09:30 -07:00
Chris Roberts
5d83c03bfc
Properly handle synced folders in docker provider on WSL
2017-05-12 14:05:12 -07:00
Chris Roberts
ffc6e3e282
Merge pull request #8566 from chrisroberts/fix/docker-ssh
...
Fall back to old style ssh info lookup in docker provider
2017-05-08 10:14:51 -07:00
Chris Roberts
88dfe18a3f
Fall back to old style ssh info lookup in docker provider
...
If ssh information cannot be properly extracted from within
the NetworkSettings data, fallback to original ssh information
implementation
Fixes #8552
2017-05-05 14:02:05 -07:00
Chris Roberts
e5e0274ef5
Update hyperv and docker providers to raise exception on SSH when machine is not ready
...
This makes the behavior of the docker and hyperv provider consistent with the
virtualbox provider by raising an error on ssh actions if the machine is not
created or not running.
Fixes #8508
2017-05-05 14:01:12 -07:00
Chris Roberts
05b6cdab6c
Do not force docker host VM on Darwin or Windows
2017-04-03 14:48:14 -07:00
Chris Roberts
74ad90d8e0
Merge pull request #7840 from pstengel/bugfix/7651
...
Do better at finding ssh_info for Docker
2017-04-03 14:41:50 -07:00
Chris Roberts
6f578590a9
Skip forwarded port if disabled in docker provider
2017-03-09 10:28:41 -08:00
Paul Stengel
d98c5b8c00
Do better at finding ssh_info for Docker
2017-01-05 17:41:39 -05:00
Theron Boerner
391c5be08e
Remove --interactive flag from Docker command
...
See: GH-7597. Due to the childprocess gem setting STDIN to a pipe,
Docker will fail as it requires STDIN to be a TTY if run with
--interactive.
2016-10-05 14:38:20 -05:00
Seth Vargo
e270e7df27
provider/docker: Add -u flag to exec
2016-05-31 20:05:27 -04:00
Seth Vargo
cfac24779c
provider/docker: Separate -i and -t flags for exec
2016-05-31 20:05:27 -04:00
Seth Vargo
bf96b3348b
provider/docker: Add docker-exec command
...
This adds a new core command, `docker-exec`, which allows the user to
exec into an already-running container.
- Fixes #6566
- Fixes #5193
- Fixes #4904
- Fixes #4057
- Fixes #4179
- Fixes #4903
2016-05-31 20:05:26 -04:00
Seth Vargo
38f23fe001
providers/docker: Allow TCP and UDP ports on same number
...
This commit changes the way ports are aggregated in the Docker provider.
Previously ports were aggregated by their "number", but that is not a
truly unique representation. Instead, the protocol is now taken into
account when generating the port map.
Fixes GH-5527
2016-05-30 17:23:44 -04:00
Ray Ruvinskiy
e42f346b1d
Make `start` action run provisioners if VM is running
...
Previously, there was no one gesture that would start a VM if it was not
running and run the appropriate provisioners regardless of its original
state. `vagrant up` did nothing if the VM was running, while
`vagrant provision` did nothing if the VM was not running.
Change the semantics of `vagrant up`, via the start actions of the providers,
to go through the provisioning logic even if the VM is already running.
The semantics of `run: "once"` vs `run: "always"` are respected.
Tested with the VirtualBox provider but not the others.
Resolves #4421
2016-05-27 19:00:33 -04:00
Seth Vargo
8c11b537ba
Allow Mac/Windows users to use Docker native
2016-05-27 17:36:07 -04:00
till
647bd6114c
Change: disable the linux switch (Docker for Mac/Windows, etc.)
2016-05-08 21:35:12 +02:00
Seth Vargo
825bd6d5ef
Run provisioner cleanup tasks before destroying the VM
2015-11-19 11:14:31 -08:00
Mitchell Hashimoto
bac5d039db
providers/docker: pull setting, default false [GH-5932]
2015-07-15 11:08:01 -07:00
Mitchell Hashimoto
f1618f5ec8
providers/docker: don't remove image on reload for build cache
2015-07-09 14:23:26 -06:00
Adrian Guenter
9bdefb5c59
Don't destroy built Docker image on reload
2015-07-09 16:15:56 -04:00