David Sheets
46e4076736
database-mac: clean up /mnt/db after use
...
Leaving this unnecessary directory in place caused docker/for-mac#1379 .
Signed-off-by: David Sheets <dsheets@docker.com >
2017-03-03 13:08:15 +00:00
Justin Cormack
1489dda256
Unmount database after copying
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-01-28 17:09:01 +00:00
Justin Cormack
b4f770f014
Fix mountpoint for mac
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-01-28 14:45:44 +00:00
Justin Cormack
9c2ea15c5c
Mount osx 9p db on /mnt
...
Otherwise interferes with transfused startup.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-01-28 12:03:02 +00:00
Justin Cormack
f3a8e77c99
Split config database setup by platform
...
Add basic database setup for AWS, GCP although these are not yet used
by the setup code but will be useful later.
Currently each is gated by `mobyplatform` but this can be removed once we
construct Moby per platform, and once these are containerised so they
are not run from `openrc`.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-01-23 18:08:26 +00:00
Justin Cormack
114a6971e0
Always have database at /Database
...
Use a bind mount for OSX and Windows for 9p filesystem.
This makes it easier to use a different database source,
and to share database into system containers.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-01-19 14:34:29 +00:00
Justin Cormack
b1597ff9a9
Move all output to the directories it will be in eventually
...
Signed-off-by: Justin Cormack <justin@specialbusservice.com >
2016-09-12 16:02:07 +01:00
Justin Cormack
01a588cb6b
Fix up mobyconfig startup code
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-25 14:03:03 +01:00
Justin Cormack
4f5db70e9c
fix typo
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-25 12:35:45 +01:00
Justin Cormack
85726ee406
only try to mount db for desktop editions
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-07-21 18:37:34 +01:00
Dave Tucker
202cccd9d9
Remove hupper and mobyconfig watch
...
Signed-off-by: Dave Tucker <dt@docker.com >
2016-06-02 20:39:25 +01:00
David Scott
c1973d38ce
mobyconfig: on Hyper-V connect to the db over AF_HYPERV
...
We detect Hyper-V by the presence of /sys/bus/vmbus and then run the
/sbin/9pmount-vsock command to establish a socket connection and then
pass the fd to /bin/mount
This patch also hard-codes the database directory
com.docker.driver.amd64-linux
since we can't use the kernel commandline on Hyper-V hosts. It would
probably be better to expose a generic directory name ( / ?) on all
platforms and configure the datbase to store each VM's configuration
in a different directory.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-05-21 21:51:11 +01:00
Justin Cormack
72d0b35f0c
be better at checking strings which aere mainly empty
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-12 15:38:18 +01:00
Justin Cormack
67d9192819
empty config files should not be marked for exists
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-11 13:41:17 +01:00
Justin Cormack
43c22fcffa
change find to use keys, fix /etc/docker copying using find
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 14:03:43 +01:00
Justin Cormack
a8a2905367
add a find option to mobyconfig
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 13:37:11 +01:00
Justin Cormack
65c01ca277
path works for directories too
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 13:27:18 +01:00
Justin Cormack
d921b04067
exists allows directories too in mobyconfig
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 13:25:35 +01:00
Justin Cormack
c9b832fec2
add directory test to mobyconfig
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 13:23:23 +01:00
Justin Cormack
993abcdb76
add path option to mobyconfig
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 13:08:25 +01:00
Justin Cormack
c8ad2e11f9
fix check in config
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-08 11:15:16 +01:00
Justin Cormack
8b5044e040
support watch paths on mobyconfig
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-07 16:25:32 +01:00
Justin Cormack
20e6da1cc3
add mobyconfig tool for simpler config
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-07 14:58:12 +01:00