docker-compose

tmaier/docker-compose Docker Image

自动构建

包含Docker和Docker Compose的容器,适用于CI(持续集成)环境,便于在CI流水线中使用"Docker in Docker"功能。

57 次收藏下载次数: 0状态:自动构建维护者:tmaier仓库类型:镜像最近更新:4 年前
下载命令
点击查看

Docker Compose

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 https://hub.docker.com/_/docker has now Docker Compose included. This has been introduced by https://github.com/docker-library/docker/pull/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) https://github.com/tmaier/docker-compose, 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.

yaml
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:

  • https://github.com/docker/docker-ce/releases or https://hub.docker.com/_/docker
  • https://github.com/docker/compose/releases

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

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 docker-compose 镜像标签

docker pull docker.xuanyuan.run/tmaier/docker-compose:<标签>

DockerHub 原生拉取命令

docker pull tmaier/docker-compose:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告