Skip to content

Instantly share code, notes, and snippets.

@rekyuu
Created November 11, 2021 03:50
Show Gist options
  • Save rekyuu/86e43864852d3c1be4e79e0b835f82dc to your computer and use it in GitHub Desktop.
Save rekyuu/86e43864852d3c1be4e79e0b835f82dc to your computer and use it in GitHub Desktop.
TeamCity Agent with Docker 20
FROM jetbrains/teamcity-agent:2021.2-linux-sudo
ARG dockerLinuxComponentVersion='5:20.10.10~3-0~ubuntu'
USER root
RUN apt-get update && \
apt-get install -y docker-ce=${dockerLinuxComponentVersion}-$(lsb_release -cs) \
docker-ce-cli=${dockerLinuxComponentVersion}-$(lsb_release -cs)
USER buildagent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment