Sign inSign up

cburki/gitlab-ci-docker

By cburki

Updated over 10 years ago

Gitlab Continuous Integration image for running docker (NO LONGER MAINTAINED)

Image
0

3.0K

cburki/gitlab-ci-docker repository overview

Summary

This image allow to run Docker commands inside a container. This is not a Docker-in-Docker image. It is usefull within a Continuous Integration (CI) system which is itself a container. In Gitlab CI, this allows you to build and test docker based projects.

When your CI container will create more containers, those containers will be created in the top level Docker.

The machine and compose tools are installed in this image so that they can be used during CI build and deployment.

Build the image

To create this image, execute the following command in the gitlab-ci-docker folder.

docker build -t cburki/gitlab-ci-docker .

Run the image

When running the image, just expose the Docker socket and Docker Engine binary to your CI container.

docker run \
    --name gitlab-ci-docker \
    --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/bin/docker:/usr/bin/docker \
    -i \
    -t \
    cburki/gitlab-ci-docker:latest \
    /bin/bash

Tag summary

Content type

Image

Digest

sha256:a0cf609a7

Size

128.1 MB

Last updated

over 10 years ago

docker pull cburki/gitlab-ci-docker