This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a DinD image based on Alpine linux
- Loading branch information
1 parent
2629a28
commit b13dd13
Showing
2 changed files
with
22 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM gliderlabs/alpine | ||
MAINTAINER platform-eng@c2fo.com | ||
|
||
# Let's start with some basic stuff. | ||
RUN apk-install iptables ca-certificates lxc e2fsprogs | ||
|
||
# Install Docker from Alpine repos | ||
RUN apk-install docker | ||
|
||
# Install the magic wrapper. | ||
ADD ./wrapdocker /usr/local/bin/wrapdocker | ||
RUN chmod +x /usr/local/bin/wrapdocker | ||
|
||
# Define additional metadata for our image. | ||
VOLUME /var/lib/docker | ||
CMD ["wrapdocker"] | ||
|
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,5 @@ | ||
#!/bin/bash | ||
|
||
cp ../wrapdocker . | ||
docker build -t dind_alpine . | ||
rm wrapdocker |