David Sheets
16101e66c3
transfused: add start-up log, self-log trigger, and run-time log flags
...
During start-up, logs are sent to syslog and stderr and the console if
syslog is not available. -l logfile will also send the logs to logfile but
only prior to any log trigger events. -m mount_trigger lets the user
specify the mount point to watch for to begin sending logs to
-t triggered_log file which may be on the newly mounted file system. Log
concatenation and rollover are not implemented, yet. Logging functionality
has been separated into transfused_log.c. Locks have been placed around
shared fds. The writer thread is now symmetric to the reader thread instead
of inheriting the parent's thread in order to trigger log switchover after
the file system proxy has started. The coredump size rlimit has been lifted.
Signed-off-by: David Sheets <david.sheets@docker.com>
2016-03-18 11:21:42 +00:00
David Sheets
58ded96b29
transfused: fix usage msg, remove syslog, use start-stop-daemon logging
...
Signed-off-by: David Sheets <david.sheets@docker.com>
2016-03-18 09:33:41 +00:00
David Sheets
224bbcea63
transfused: change protocol to support events, add syslog logging
...
The event string in the 9p socket file system now contains a 1 byte
channel type immediately preceding the connection ID. This channel type
determines which protocol will be used on the channel -- m for FUSE
protocol, e for events. The event messages are host-initiated and have
the following structure:
2 bytes for total length
2 bytes for path length + NUL (x)
x bytes for path
1 byte for syscall
stderr logging was also changed to syslog-based logging in this patch.
Signed-off-by: David Sheets <david.sheets@docker.com>
2016-03-18 09:33:41 +00:00
Justin Cormack
f0ff62fbe2
fix typo properly
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 19:47:14 +00:00
Justin Cormack
c18749b761
typo
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 18:27:42 +00:00
Justin Cormack
65c187a0dd
shift logs to host before docker startup, keep old logs
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 15:27:50 +00:00
Justin Cormack
6178bb2221
too early to log here, fuse not up
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:49:35 +00:00
Justin Cormack
c22d1f36a6
add log message for starting docker
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:28:55 +00:00
Justin Cormack
b4560d8876
fix typo
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:06:39 +00:00
Justin Cormack
8c49b54738
make sure transfused is logging
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 12:30:18 +00:00
Justin Cormack
407eba8daa
move hostlog into 9pinit so it happens early enough to capture logs
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 12:27:20 +00:00
Justin Cormack
c8b351bda4
docker download needs Linux not linux, sigh
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 16:00:28 +00:00
Justin Cormack
7bc1c77482
clean up download to make sure errors correctly
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 15:45:43 +00:00
Justin Cormack
74aa597409
revert to 32k transfers for next beta
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 15:20:56 +00:00
Justin Cormack
8c01f302cd
Debian unstable cannot currently compile Linux without segfaulting, revert to Ubuntu
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 10:32:17 +00:00
Justin Cormack
18ad2f95e9
also set OS for arm builds
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 20:00:39 +00:00
Justin Cormack
7000440afd
explicitly set OS=linux as Windows sets OS env var
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 19:57:15 +00:00
Justin Cormack
5aac58d322
256k transfers working now on pinata
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 15:26:48 +00:00
Justin Cormack
6efb24b599
revert max 9p transfer size to 64k
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 14:41:56 +00:00
Justin Cormack
263bb8030d
increase max 9p transfer size to 256k
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 13:57:28 +00:00
Justin Cormack
32abc91a05
more memory
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 14:13:12 +00:00
Justin Cormack
994684b155
fix sha256 commit for arm
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 14:09:16 +00:00
Justin Cormack
6e8940d25f
fix exact commit for arm
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 13:54:55 +00:00
Justin Cormack
91cafe12f5
fix arm build, dtb files now checked in
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 13:48:59 +00:00
Justin Cormack
5d6f234057
fix docker pidfile, may resolve #44
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 11:52:24 +00:00
Justin Cormack
ae984a50a1
update to docker 1.10.3
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 22:08:48 +00:00
Justin Cormack
729faed1d4
exact commit for alpine to help match source
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 20:41:28 +00:00
Justin Cormack
cfcb0f1d61
use debian not ubuntu for making iso so we have fewer base images
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:34:11 +00:00
Justin Cormack
98b688817d
update kernel to 4.1.19
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:22:34 +00:00
Justin Cormack
fa38e7c1b2
bump aufs patch
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:21:54 +00:00
Justin Cormack
3033747de6
move ntp cron job to correct directory, fix timekeeping drift better
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:15:01 +00:00
Justin Cormack
f25230a151
generate compressed initrd, use it for xhyverun
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:09:54 +00:00
Justin Cormack
41c6089775
empty /mnt mountpoint
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-08 00:48:08 +00:00
Justin Cormack
c3488731f4
Merge pull request #43 from rneugeba/initrdfix
...
initrd: don't include /mnt in the initrd
2016-03-07 13:29:16 +00:00
Rolf Neugebauer
2b911247af
initrd: don't include /mnt in the initrd
...
With the move to compose/volume mounts this now includes the current
directory. Noticed it when my initrds were getting bigger and bigger.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2016-03-07 12:34:41 +00:00
Justin Cormack
e003a56326
clean up docker init
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-04 11:50:28 +00:00
Justin Cormack
e9216cc716
Do not write ip address to database, no longer needed.
...
See discussion in #39 .
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-04 10:43:01 +00:00
Justin Cormack
612d087426
explicit compose build
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-03 09:22:55 +00:00
Justin Cormack
a863d8d7b6
explicit compose build
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-03 09:21:58 +00:00
Justin Cormack
a9a300ccf2
use the new cdn based Alpine repo, its faster and global
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-02 22:31:09 +00:00
Justin Cormack
c9ba063c7d
somehow networking is resetting hostname, get mdnstool to fix for now
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-01 16:50:30 +00:00
Justin Cormack
be2612bfd8
do not set hostname in dhcp
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-01 14:57:11 +00:00
Justin Cormack
3ff1aed545
Merge pull request #40 from djs55/add-ip-debug
...
Add debugging around writing the "ip" file
2016-03-01 09:28:00 +00:00
David Scott
076fcce176
Add debugging around writing the "ip" file
...
If writing the "ip" file doesn't happen, this should show the reason
why.
Related to #39
Signed-off-by: David Scott <dave.scott@docker.com>
2016-03-01 09:21:28 +00:00
Justin Cormack
928667ca57
clean up transfused startup scripts
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-26 13:46:26 +00:00
Justin Cormack
5dd093656f
Revert "set debug mode on docker daemon"
...
This reverts commit 52cce5311a
.
2016-02-24 16:18:47 +00:00
Justin Cormack
12389cd8cc
set debug mode on docker daemon
...
See https://github.com/docker/pinata/issues/827
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-24 14:24:58 +00:00
Justin Cormack
d0ec243663
update to 1.10.2
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-22 23:25:06 +00:00
Justin Cormack
11e0140e24
update kernel to 4.1.18
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-22 16:48:54 +00:00
Justin Cormack
d1081e6b6e
output that we are shutting down docker
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-19 16:59:38 +00:00