Commit Graph

66 Commits

Author SHA1 Message Date
Justin Cormack
6b0b4e05cb 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
7d11cd267b 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
4ce4e978c6 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
85fa14ad8e 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
d29278ba32 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
a187d2e5f4 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
3473f0717f 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
af9b3ad7a2 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
4dec575407 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
cbd7af5e1d 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
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
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
c1797c304c 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
192c90b0a7 Replace 9pudfuse with transfused 2016-02-12 14:07:43 +00:00
Justin Cormack
8cc82ba98b 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
bdd1efe043 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
c5525c8a7a 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
2388a191f3 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
7913dac16d fix runlevel for hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 18:29:20 +00:00
Justin Cormack
999aee643c install hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-01-22 18:22:55 +00:00
Justin Cormack
5acf36affa 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
cfafe4f2d3 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
5e7809d0ad add bind-tools for dig as busybox nslookup is a bit broken
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-18 14:33:02 +00:00
Justin Cormack
2bea264d1a remove maintainer line, not needed
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-12 11:50:48 +00:00
Justin Cormack
1d03f5011d simplify the docker-x install process
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-08 15:16:48 +00:00
Justin Cormack
e50c7317cb fix service name
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-07 16:04:27 +00:00
Justin Cormack
9ea207a38e consistent naming
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-07 15:13:42 +00:00
Justin Cormack
d33f69158e rename binfmt_misc package
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-07 14:47:46 +00:00
David Sheets
c91006e6e8 Add 9pudfuse and fuserun.sh for testing remote FUSE file systems 2016-01-06 14:41:47 +00:00
Justin Cormack
7e8edd35cb add strace to default image for debugging
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-05 15:01:01 +00:00
Justin Cormack
7b33ea49bb replace docker-x binary with a script that downloads on demand
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-04 12:19:03 +00:00
Justin Cormack
644b733bbc do not add docker-x, as it is rather large and will not be updated often; will add another way to do this
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2016-01-04 11:41:28 +00:00
Justin Cormack
270caa071c do not need the qemu executables in moby, they need to be in container
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-31 10:32:34 +00:00
Justin Cormack
c70b432b6f add experimental package for qemu-user emulation for arm
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-31 00:25:25 +00:00
Justin Cormack
9a3fa822db set clock periodically, as had incident when it was set to 1970 with chronyd running!
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-30 13:37:41 +00:00
Justin Cormack
8558e6e0c0 add docker-x package
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-29 16:16:06 +00:00
Justin Cormack
f3a8404411 need alpine-conf repo now for disk-setup tool
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2015-12-28 12:38:18 +00:00
Justin Cormack
058ada1150 Upgrade to alpine 3.3
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2015-12-24 20:08:12 +00:00
Justin Cormack
7527a4da71 lock down alpine to exact hash until 3.3 is out
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2015-12-24 10:15:40 +00:00
Justin Cormack
0693f6a715 update to work with latest alpine:edge
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2015-12-23 23:44:51 +00:00
Justin Cormack
f6eb32c2c1 UTC is default, do not need to set
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2015-12-23 21:01:56 +00:00
Justin Cormack
3f00b547ac move 9pinit to packages
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-23 13:18:43 +00:00
Justin Cormack
a7cc326f1c move automount to packages
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-23 13:02:25 +00:00
Justin Cormack
d5b9f7ec1d new initrd with diagnostics
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-21 10:57:30 +00:00
Justin Cormack
6670833de8 move config files under packages
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-18 16:41:29 +00:00
Justin Cormack
6cce9a78e9 Use official docker image instead of Alpine package; switch to aufs by default
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-18 14:13:34 +00:00
Justin Cormack
70d8143e48 move kernel under rest of build and pull through aufs tools
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-17 15:26:42 +00:00
Justin Cormack
d543f287ce give docker user a login shell
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-16 14:50:26 +00:00
Justin Cormack
0bb657c627 add a docker user, with the standard uid, gid used to mount 9p fs, as that is what some scripts expect
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-14 18:16:45 +00:00
Justin Cormack
db56b320a4 use the standard alpine tool to setup disk instead
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
2015-12-14 15:40:58 +00:00