Justin Cormack
0ade84e151
Fix docker pull
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-12 13:04:19 +01:00
Justin Cormack
8a71fbdbb6
Add missing import
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-12 11:41:37 +01:00
Justin Cormack
9afbc24c79
Merge pull request #30 from riyazdf/revert-run-api
...
Revert "Use Docker API for run"
2017-05-12 11:31:33 +01:00
Riyaz Faizullabhoy
e26f2878d3
Revert "Use Docker API for run"
...
This reverts commit ec6fea1d67 .
2017-05-11 17:32:32 -07:00
Riyaz Faizullabhoy
abf0028ee8
Use docker and notary API for pull
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-05-11 10:11:19 -07:00
Justin Cormack
11b913606d
Merge pull request #11 from riyazdf/run-api
...
Use Docker API for run
2017-05-09 16:31:57 +01:00
Justin Cormack
6187570b7a
Add missing Close in initrd creation
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-09 13:34:41 +01:00
Justin Cormack
cc2a3a645f
Add support for symlinks in files section
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-09 13:15:11 +01:00
Justin Cormack
96ae98d2d5
Do not log information about empty sections
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-09 13:12:51 +01:00
Justin Cormack
e25033f70d
Allow no kernel to be specified
...
This is needed for non LinuxKit use cases.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-09 13:03:58 +01:00
Magnus Skjegstad
09c2904994
Don't exit after pulling init or kernel image
...
Due to a missing else the tool would previously terminate with an error
message showing that the kernel or init image didn't exist, even if it
was pulled successfully. Invoking the tool again would continue to the
next image.
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com >
2017-05-08 20:48:20 +02:00
Justin Cormack
7c33eb81b6
Go fmt
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-08 17:50:11 +01:00
Justin Cormack
dd08b2b70a
Add tar output format
...
Add a canonical single tarball output format. This
adds kernel and cmdline to `/boot` where LinuxKit output
formats will find them.
Make the other output formats use that as a base.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-08 17:19:08 +01:00
Justin Cormack
45a3e4ccd2
Merge pull request #15 from alexellis/support_none
...
Support `capabilities: none` in YML - Fix #14
2017-05-01 16:35:57 +01:00
Alex Ellis
b046618027
Support none as capabilities.
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com >
2017-05-01 16:08:23 +01:00
Riyaz Faizullabhoy
95a9a4ff67
Use IsErrNotFound to tighten err handling
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-04-28 10:50:58 -07:00
Riyaz Faizullabhoy
ec6fea1d67
Use Docker API for run
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-04-28 10:45:37 -07:00
Justin Cormack
d0f867e9b2
Make sure we always pull images if create fails
...
`docker create` will not pull an image so we need an additional fallback.
Rework the pull and trust code so it is in one place to facilitate this.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-28 16:14:15 +01:00
Justin Cormack
ef017ac223
Support both kernel and bzImage for now
...
Also do not require `tar` to be in container, use the standard
image export code that we already have and find the files we
want.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-28 12:48:04 +01:00
Justin Cormack
2cd9bead88
Switch from bzImage to kernel for kernel image
...
This was too architecture specific previously.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-28 12:38:04 +01:00
Riyaz Faizullabhoy
37f57cfa84
Use Docker API for rm, create, export, and inspect
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-04-27 14:09:17 -07:00
Akihiro Suda
d98f23c2ba
build: support reading yaml from stdin
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2017-04-25 10:26:34 +00:00
Justin Cormack
fa88ca8ede
Move src/cmd to cmd
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-24 22:58:37 +01:00