Skip to content

Commit

Permalink
Docker In Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
alekslitvinenk committed Nov 14, 2019
1 parent df812df commit 0e3fe3d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
@@ -0,0 +1,14 @@
FROM docker:18.09.6

LABEL maintainer="Alexander Litvinenko <array.shift@yahoo.com>"

ENV APP_NAME dind
ENV APP_INSTALL_PATH /opt/${APP_NAME}

WORKDIR ${APP_INSTALL_PATH}

COPY scripts .

RUN apk add --no-cache iptables bash

ENTRYPOINT [ "./start.sh" ]
6 changes: 6 additions & 0 deletions build.sh
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

NEW_UUID=latest

docker build -t alekslitvinenk/dind:$NEW_UUID -t alekslitvinenk/dind:latest --no-cache .
docker push alekslitvinenk/dind:$NEW_UUID
10 changes: 10 additions & 0 deletions scripts/start.sh
@@ -0,0 +1,10 @@
#!/bin/bash

dockerd &

sleep 2

# By some strange reason we need to do echo command to get to the next command
echo " "

exec bash

0 comments on commit 0e3fe3d

Please sign in to comment.