2017-01-04 01:52:31 +01:00
# Docker Compose
2022-11-01 02:02:40 +01:00
[![Docker Automated build ](https://img.shields.io/docker/automated/tmaier/docker-compose.svg )](https://hub.docker.com/r/tmaier/docker-compose/)
2017-01-29 14:15:32 +01:00
[![Docker Pulls ](https://img.shields.io/docker/pulls/tmaier/docker-compose.svg )](https://hub.docker.com/r/tmaier/docker-compose/)
[![GitHub issues ](https://img.shields.io/github/issues/tmaier/docker-compose.svg )](https://github.com/tmaier/docker-compose/issues)
[![GitHub stars ](https://img.shields.io/github/stars/tmaier/docker-compose.svg?style=social&label=Star )](https://github.com/tmaier/docker-compose)
2017-01-26 16:56:29 +01:00
This docker image installs docker-compose on top of the `docker` image.
2018-04-18 16:44:10 +02:00
This is very useful for CI pipelines, which leverage "Docker in Docker".
2017-01-26 16:56:29 +01:00
2022-11-01 03:10:44 +01:00
## This Docker image is DEPRECATED
2022-11-01 03:15:36 +01:00
This image is deprecated, since the [`docker` image ](https://hub.docker.com/_/docker ) has now Docker Compose included.
2022-11-01 03:10:44 +01:00
This has been introduced by [docker-library/docker#361 ](https://github.com/docker-library/docker/pull/361 ).
2017-09-07 13:22:26 +02:00
## Docker versions supported
2022-11-01 02:29:23 +01:00
The Docker Compose versions supported here use the most recent docker version compatible with it.
2018-04-18 16:44:10 +02:00
2018-04-29 17:25:01 +02:00
All available Docker Engine versions and the respective Docker Compose versions are defined in [`DOCKER_AND_COMPOSE_VERSION_MATRIX` ](./DOCKER_AND_COMPOSE_VERSION_MATRIX ).
2017-09-07 13:22:26 +02:00
Please open an issue or a pull request (preferred) [at GitHub ](https://github.com/tmaier/docker-compose ), if a version is missing.
2017-01-29 14:15:32 +01:00
2022-11-01 02:56:30 +01:00
**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.
2017-10-04 09:48:32 +02:00
## Usage instructions for GitLab CI
You may use it like this in your `.gitlab-ci.yml` file.
```yaml
image: tmaier/docker-compose:latest
services:
- docker:dind
before_script:
- docker info
- docker-compose --version
build image:
stage: build
script:
- docker-compose build
```
2018-07-28 08:54:46 +02:00
## 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 ).
2021-04-08 07:56:54 +02:00
`DOCKER_AND_COMPOSE_VERSION_MATRIX` specifies in the first column the docker version.
2018-07-28 08:54:46 +02:00
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:
2022-11-01 01:12:00 +01:00
- https://github.com/docker/docker-ce/releases or https://hub.docker.com/_/docker
2021-04-08 07:56:54 +02:00
- https://github.com/docker/compose/releases
2020-04-12 12:46:41 +02:00
## Common issues and possible fixes
2020-04-12 12:46:57 +02:00
### `ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: ...`
2020-04-12 12:46:41 +02:00
> 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 >
2017-01-29 14:15:32 +01:00
## Author
[Tobias L. Maier ](http://tobiasmaier.info ) for [BauCloud GmbH ](https://www.baucloud.com )