1
0
mirror of https://github.com/tmaier/docker-compose synced 2024-11-21 23:42:05 +01:00
Container with Docker + Docker Compose - good for CI
Go to file
2022-11-01 14:24:21 +01:00
hooks Change approach for tagging the docker image 2022-11-01 02:29:23 +01:00
DOCKER_AND_COMPOSE_VERSION_MATRIX Change approach for tagging the docker image 2022-11-01 02:29:23 +01:00
docker-compose.test.yml Remove individual build directories 2018-04-29 07:02:09 +02:00
Dockerfile Add /usr/bin to PATH to support our docker-compose version 2022-11-01 14:24:21 +01:00
LICENSE Initial commit 2017-01-04 01:06:01 +01:00
README.md Fix gramma 2022-11-01 03:15:36 +01:00

Docker Compose

Docker Automated build Docker Pulls GitHub issues GitHub stars

This docker image installs docker-compose on top of the docker image. This is very useful for CI pipelines, which leverage "Docker in Docker".

This Docker image is DEPRECATED

This image is deprecated, since the docker image has now Docker Compose included. This has been introduced by docker-library/docker#361.

Docker versions supported

The Docker Compose versions supported here use the most recent docker version compatible with it.

All available Docker Engine versions and the respective Docker Compose versions are defined in DOCKER_AND_COMPOSE_VERSION_MATRIX.

Please open an issue or a pull request (preferred) at GitHub, if a version is missing.

Note: In the past. this docker image (tags) focused on the docker version (e.g. latest, 20.10, 19.03 and 19). But as the docker releases got less disruptive, the approach changes to use the docker compose version as tags.

Usage instructions for GitLab CI

You may use it like this in your .gitlab-ci.yml file.

image: tmaier/docker-compose:latest

services:
  - docker:dind

before_script:
  - docker info
  - docker-compose --version

build image:
  stage: build
  script:
    - docker-compose build

How to add support for a new docker version to this repository?

You must only provide a Pull Request for the file DOCKER_AND_COMPOSE_VERSION_MATRIX.

DOCKER_AND_COMPOSE_VERSION_MATRIX specifies in the first column the docker version. The second column states the most recent release of docker-compose when the docker version has been released.

You can see the latest matching versions of both by checking their release notes:

Common issues and possible fixes

ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: ...

As of version 19.03, docker:dind will automatically generate TLS certificates and require using them for communication.

See https://github.com/tmaier/docker-compose/issues/21#issuecomment-578780163

Author

Tobias L. Maier for BauCloud GmbH