Commit Graph

81 Commits

Author SHA1 Message Date
Rolf Neugebauer
69f5cb301c alpine: Add Hyper-V daemons to the build
The daemons allow proper shutdown of a VM, heartbeats,
inquiring and setting the network configuratio etc etc.

They are only started with running in a Hyper-V VM

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2016-01-28 09:17:44 -08:00
Justin Cormack
f47531f2a9 add a script to move all logs to host
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 13:36:36 +00:00
Justin Cormack
01227dc6f6 run docker after 9p fuse
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 13:20:45 +00:00
Justin Cormack
a327c706fe typo
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 12:19:02 +00:00
Justin Cormack
b7987a8ced read initial state from watchfile, should fix #17
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 12:16:02 +00:00
Justin Cormack
c15bff5cfe add generic database setup, and add sysctl support
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 11:42:52 +00:00
Justin Cormack
e41843a69c check if automount worked
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 11:14:05 +00:00
Justin Cormack
8a0899b069 eend in binfmt_misc for tidier boot log
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-27 10:53:38 +00:00
Justin Cormack
67fb87a8f6 typo
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 17:42:45 +00:00
Justin Cormack
de3ee7832c do not set graph driver in moby, use default or get from daemon.json config
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 12:35:46 +00:00
Justin Cormack
5ab15b564b for now always restart docker daemon, not send HUP as most changes require it
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 11:49:04 +00:00
Justin Cormack
bae12144e6 hupper does not strictly need to run after docker, just advisory
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 11:24:46 +00:00
Justin Cormack
e143f32816 add pidfile support to hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 11:24:10 +00:00
Justin Cormack
34150463e5 add diagnostics for fuse if used
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-26 10:59:09 +00:00
Justin Cormack
bc3f3f005a make diagnostics run after all teh things it checks
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 23:25:25 +00:00
Justin Cormack
8f08cebf3b fix hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 22:40:06 +00:00
Justin Cormack
af71eb1098 reorder test
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 22:28:02 +00:00
Justin Cormack
48239cdbdd Read exactly 43 bytes from watch
More and it hangs forever at present
Less and it will not read whole record

See https://github.com/docker/pinata/issues/766

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 21:10:13 +00:00
David Sheets
cb5e0d6865 9pudfuse: remove per-packet logging and catch write errors
Signed-off-by: David Sheets <sheets@alum.mit.edu>
2016-01-25 17:03:10 +00:00
David Sheets
c54d179146 9pudfuse: increase msize to 32k and move mkdir into 9pinit
Signed-off-by: David Sheets <sheets@alum.mit.edu>
2016-01-25 17:01:08 +00:00
Justin Cormack
3d95131a77 add boot2docker image compatibility
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 14:33:46 +00:00
Justin Cormack
d04724c828 hostname in database moved to etc/
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 11:33:27 +00:00
Justin Cormack
a1283877fe add hupper process to diagnostics
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-25 10:45:50 +00:00
Justin Cormack
66eac01bc7 install hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 18:22:55 +00:00
Justin Cormack
85ebc8413e update gitignore
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 14:16:14 +00:00
Justin Cormack
1bdf9b9603 force overlay for now, until -rc2
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 12:18:15 +00:00
Justin Cormack
7f57ee0b88 tweak gitignore
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 11:59:23 +00:00
Justin Cormack
889febc25b add process to send HUP signals to docker on config updates
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 11:58:38 +00:00
Justin Cormack
11b8a294b6 remove customisation options as we will need to access pidfile elsewhere
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-21 17:16:17 +00:00
Justin Cormack
cb1252492f fix config file
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-20 16:58:25 +00:00
Justin Cormack
c9a5b5ae56 fix elif
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-20 16:57:47 +00:00
David Sheets
97e3ac80f8 9pudfuse: make sure the probable mount point exists 2016-01-20 14:58:08 +00:00
Justin Cormack
184529edbf some logic to choose graph driver, not just go with aufs
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-20 14:49:30 +00:00
Justin Cormack
cafc757917 Use a config file from the database if present
See issue https://github.com/docker/pinata/issues/690

Note there is not yet a restart mechanism.

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-20 14:40:45 +00:00
Justin Cormack
d74c4fb039 fix #10 do not run dnsfix if no eth0
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-19 16:00:01 +00:00
Justin Cormack
c82d098b9c fix hostname startup ordering
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-19 15:52:54 +00:00
Justin Cormack
7d2e0bb6ec fix hostname setting
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-19 12:11:42 +00:00
Justin Cormack
431ef161c1 add missing hostname file
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-18 17:24:19 +00:00
Justin Cormack
d0254fe21e test localhost dns lookup as it doesnt time out slowly if no network access
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-18 17:13:31 +00:00
Justin Cormack
1238340091 Add a dnsfix service
Test to see if we can reach the DNS server which we get via
DHCP. If not fall back to Google public DNS.

Some users on OSX seem to get this situation with xhyve,
see https://github.com/docker/pinata/issues/551

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-18 14:33:02 +00:00
Justin Cormack
3488788004 upgrade to 1.10.0-rc1
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-16 20:59:22 +00:00
Justin Cormack
ff6dbacce9 fix docker log output
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-15 16:44:33 +00:00
Justin Cormack
9346c2f687 move docker logs to host, see #447. Syslog still local
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-15 15:20:04 +00:00
Justin Cormack
56d8773080 mount database
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-14 16:19:30 +00:00
Justin Cormack
c29135c18a clean up 9p virtio init to check which drivers are available
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-14 11:25:34 +00:00
Justin Cormack
15c23a54ea add binary arm docker, as official builds do not support daemon yet
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-13 15:50:26 +00:00
Justin Cormack
658ac6145f Initial arm support
Not yet working, some parts also not yet cross compiled

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-13 15:49:38 +00:00
Justin Cormack
c7cccda155 better automount failure handling
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-11 16:40:47 +00:00
Justin Cormack
d07c846967 tidy curl
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-11 12:17:38 +00:00
Justin Cormack
a5e7c22a05 get docker from get.docker.com not from docker hub
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-11 12:13:57 +00:00