This repository has been archived by the owner on Mar 16, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
100 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.tar.xz | ||
pkg | ||
src | ||
docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/Dockerfile b/Dockerfile | ||
index b06c655..29715e0 100644 | ||
--- a/Dockerfile | ||
+++ b/Dockerfile | ||
@@ -24,11 +24,11 @@ | ||
# | ||
|
||
docker-version 0.6.1 | ||
-FROM ubuntu:12.04 | ||
+FROM resin/rpi-raspbian:jessie | ||
MAINTAINER Solomon Hykes <solomon@dotcloud.com> | ||
|
||
# Build dependencies | ||
-RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | ||
+# RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | ||
RUN apt-get update | ||
RUN apt-get install -y -q curl | ||
RUN apt-get install -y -q git | ||
diff --git a/engine/engine.go b/engine/engine.go | ||
index 5da0a97..f468a59 100644 | ||
--- a/engine/engine.go | ||
+++ b/engine/engine.go | ||
@@ -60,7 +60,7 @@ func (eng *Engine) Register(name string, handler Handler) error { | ||
// behavior. | ||
func New(root string) (*Engine, error) { | ||
// Check for unsupported architectures | ||
- if runtime.GOARCH != "amd64" { | ||
+ if runtime.GOARCH != "amd64" && runtime.GOARCH != "arm" { | ||
return nil, fmt.Errorf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH) | ||
} | ||
// Check for unsupported kernel versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# arg 1: the new package version | ||
post_install() { | ||
# create docker group (FS#38029) | ||
getent group docker >/dev/null || groupadd -g 142 docker | ||
} | ||
|
||
# arg 1: the new package version | ||
# arg 2: the old package version | ||
post_upgrade() { | ||
(( $(vercmp $2 '1:0.7.1-1') < 0 )) && post_install "$1" || true | ||
} | ||
|
||
# arg 1: the old package version | ||
post_remove() { | ||
groupdel docker >/dev/null 2>&1 || true | ||
} | ||
|
||
# vim:set ts=2 sw=2 et: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Docker Application Container Engine | ||
Documentation=http://docs.docker.io | ||
After=network.target | ||
|
||
[Service] | ||
ExecStartPre=/usr/bin/mount --make-rprivate / | ||
ExecStart=/usr/bin/docker -d | ||
|
||
[Install] | ||
WantedBy=multi-user.target |