David Scott
dbd9fb77fd
tap-vsockd: add to /sbin
...
Install the daemon in /sbin, but don't start it up yet.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-05-21 21:15:11 +01:00
Rolf Neugebauer
a29e63d660
moby: revert #126 . setup-disk -m depends on syslinux for now
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-05-20 09:42:46 +01:00
Justin Cormack
1c85e91989
We do not seem to need syslinux in the image, and it brings in libpng and things we do not need
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-05-11 14:56:58 +01:00
Justin Cormack
fc370b0c21
Revert "replace chronyd with sntpc, sync every 15s not 15m"
...
We should not use ntp.org this frequently, need to work out something
that uses host time mainly.
This reverts commit 382f99529d .
2016-05-10 11:29:16 +01:00
Justin Cormack
382f99529d
replace chronyd with sntpc, sync every 15s not 15m
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-05-10 11:00:51 +01:00
Justin Cormack
998e808da1
add resize2fs to build
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-27 12:10:23 +01:00
Justin Cormack
564998505f
add oom killer config, so containers die before system daemons, fix #110
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-26 16:00:36 +01:00
Justin Cormack
084761b9db
remove mdnstool now we are only using hostnet
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-26 14:45:50 +01:00
Justin Cormack
5c61ee27f3
Switch from busybox mdev to kernel devtmpfs
...
This is simpler, and as a by-product should resolve
https://github.com/docker/pinata/issues/1968
as it uses the now-more-correct loop device names
that newer util-linux expects.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-25 12:03:32 +01:00
Justin Cormack
53af8a1b14
clean up apk cache after install to make image a little smaller
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-25 10:59:36 +01:00
Ian Campbell
2f38aae743
Stop including nc-vsock in the initrd
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-04-21 10:09:34 +01:00
Justin Cormack
d7b363d348
fix arm build see #101 #96
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-18 11:34:14 +01:00
Rolf Neugebauer
97a338b127
moby: add a cut-down version of gummiboot
...
The gummiboot EFI stub is used for creting a EFI bootable ISO
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-16 12:50:37 +01:00
Justin Cormack
4cd3d08bdf
Merge pull request #92 from djs55/go-diagnostics
...
moby: rewrite diagnostics server in Go
2016-04-15 16:17:08 +01:00
David Scott
578c037e81
moby: rewrite diagnostics server in Go
...
This will make it easier to add a vsock interface as well as a regular
TCP/IP one.
As a side-effect, the server is now able to handle more than one concurrent
request!
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-15 16:09:54 +01:00
Rolf Neugebauer
14677a220f
alpine: create source tarballs for hvtools and llmnrd
...
Add them to the initrd under /usr/share/src
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-15 15:10:29 +01:00
Rolf Neugebauer
d4b1dbbf98
chronyd: don't start it when running on Hyper-V
...
This is a bit ugly as we copied and then modified the chronyd init.d
script as shipped in the package.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-15 15:10:28 +01:00
Rolf Neugebauer
87dae50faf
hvtools: tweak startup sequence
...
- Don't start hv_fcopy_daemon. It seems to exit and we are not
using it anyway. Also, remove it from the initrd
- Move hv_kvp_daemon and hv_vss_daemon to start earlier
(before networking and docker being started)
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-15 15:10:28 +01:00
Rolf Neugebauer
e4cff4a1e1
kernel,initrd: add CIFS to the kernel and cifs-utils to the initrd
...
Needed to enable SMB/CIFS mounts on Windows hosts
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-15 14:51:27 +01:00
Rolf Neugebauer
5f55666718
llmnrd: Add a LLMNR Daemon
...
LLMNR is the Windows equivalent of mDNS.
Import the LLMNR daemon from https://github.com/tklauser/llmnrd
It needed some small modification to compile cleanly on Moby
LLMNRD is only started when running inside a Hyper-V VM
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2016-04-15 14:51:10 +01:00
Dave Tucker
f7e374a717
Add util-linux for K8's
...
Signed-off-by: Dave Tucker <dt@docker.com >
2016-04-14 18:27:00 +01:00
Justin Cormack
3c9c67bb16
remove 9pinit package, work now done by appropriate packages or mobyconfig tool
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-07 16:40:54 +01:00
Justin Cormack
793265c48d
rename database to hostsettings
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-07 15:11:20 +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
Justin Cormack
b1cbf3e96f
move proxy 9p mounting into its own init file
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-07 10:31:08 +01:00
Ian Campbell
be7a9a4cda
vsudd: New daemon to proxy vsock to Unix domain sock
...
Used to proxy vsock 2376 <-> /var/run/docker.sock in the Moby VM.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-04-05 13:50:06 +01:00
Ian Campbell
a887fb110c
Add VSOCK patches
...
These are WIP taken from git@github.com:stefanha/linux.git#vsock
(==4c9d2a6be1c6, using "cherry-pick -x") and correspond to RFC v5 of the
frontend patches posted in
http://thread.gmane.org/gmane.linux.kernel.virtualization/27455
There is no corresponding spec proposal update yet, but this set of patches
correspond (roughly) to addressing the feedback on v4 of the spec proposal
http://thread.gmane.org/gmane.comp.emulators.virtio.devel/1062 .
kernel_config.arm modifications copied from x86, not tested.
Added /etc/kernel-patches/ directory to the image to be consumed by the
licensing.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-04-05 13:40:36 +01:00
Ian Campbell
f065ec7fdb
Add nc-vsock utility (for testing AF_VSOCK)
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2016-04-05 13:39:44 +01:00
Justin Cormack
09a98bf3e2
remove 9pudc, unused and not being fixed
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-04 18:21:01 +01:00
Justin Cormack
a65b7eff5a
Do not pin alpine 3.3 version, we do apk upgrade anyway
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-04 15:56:51 +01:00
David Scott
dc9b79f116
Add skeleton /sbin/proxy program
...
This will eventually contain the `docker-proxy` replacement.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-04-04 12:41:02 +01:00
Justin Cormack
4b0c50a779
Remove docker-x for now as no longer working, and was not possible to enable. Will rework when strategy for supporting multiple dockers decided
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-04 11:47:48 +01:00
Justin Cormack
fac0264ecf
clean up unpacking docker rc3 bundle
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-04-03 09:34:01 +01:00
Justin Cormack
e891d65e97
Support for 1.11.0-rc2, fix #57
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-03-31 18:54:05 +01:00
Justin Cormack
ad8e6c39e7
Merge pull request #59 from djs55/diagnostics-server
...
Allow diagnostics to be downloaded on port 62374
2016-03-31 12:16:00 +01:00
David Scott
d842e1b5dc
Allow diagnostics to be downloaded on port 62374
...
A client like `pinata diagnose` can do the equivalent of:
nc 192.168.64.2 62374 > foo.tar
and find `foo.tar` contains
- the output of `/usr/bin/diagnostics`
- `iptables -L`
- `netstat -an`
- `ps uax`
- `docker ps`
- `dig docker.com`
- `wget http://docker.com `
This will allow us to diagnose various in-VM faults, without having
to ask the user to access the console and run commands.
Signed-off-by: David Scott <dave.scott@docker.com >
2016-03-30 10:31:55 +01:00
Justin Cormack
6d890f007b
switch root to a tmpfs filesystem, so pivot_root works, should make #57 work now
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-03-29 22:09:23 +01:00
Justin Cormack
af7777c832
store source info for kernel and kernel patches in image for #45
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-03-18 13:53:26 +00:00
Justin Cormack
ab6a41551f
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
a17aa0bcbd
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
3ff475520c
add openssh client, as docker needs it for ssh based git clones
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-02-17 09:15:11 +00:00
David Sheets
726650a126
Replace 9pudfuse with transfused
2016-02-12 14:07:43 +00:00
Justin Cormack
0afaff2c4a
Add some wrappers to support at least the default uid mapping
...
The busybox adduser and addgroup commands are ignored by docker,
as it avoids symlinks, but they are not compatible so this is
kind of a good idea.
See https://github.com/docker/docker/blob/master/pkg/idtools/usergroupadd_linux.go
However, these do not yet deal with creating mapping ranges in /etc/subuid and
/etc/subgid, so initially we provide a set that match the default docker name
so at least docker daemon --userns-remap=default should work.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-02-10 15:47:37 -08:00
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
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
7117c7c541
fix runlevel for hupper
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-01-22 18:29:20 +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
cdf02ffe7f
set hostname from database if available
...
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com >
2016-01-18 17:09:23 +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