mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 10:24:03 +00:00
Add support for running a development bundle of Docker
Add a database key `bundle` that contains a path to a Docker dev bundle eg `/.../docker/bundles/1.13.0-dev` where the docker binaries to run can be found. This will be paired with a script in `docker/docker` to set this key, so users can easily help contribute to Docker development. The change will be permanent until the key is removed or a factory reset is done, or the bundle cannot be found. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -9,6 +9,18 @@ start()
|
||||
{
|
||||
ebegin "Starting Docker"
|
||||
|
||||
# check if overriding Docker with a dev bundle
|
||||
if mobyconfig exists bundle
|
||||
then
|
||||
bundle=$(mobyconfig get bundle)
|
||||
[ -n "$bundle" -a -d "$bundle" -a -h "$bundle/binary-client/docker" ] && \
|
||||
# note we copy all the symlinks, in case layout changes
|
||||
cp -a $bundle/binary-client/* \
|
||||
$bundle/binary-daemon/* \
|
||||
/usr/bin
|
||||
printf "Overriding Docker with provided bundle: $bundle\n"
|
||||
fi
|
||||
|
||||
command="${DOCKER_BINARY:-/usr/bin/dockerd}"
|
||||
|
||||
pidfile="/run/docker.pid"
|
||||
|
||||
Reference in New Issue
Block a user