LoginSignup
0
1

More than 5 years have passed since last update.

docker公式centos7イメージでgitのバージョンを2系にあげる方法

Posted at

docker公式のcentosイメージでyum install gitすると古いバージョン1.8系がインストールされます。
https://hub.docker.com/_/centos

gitバージョンを2系にあげる時にシンプルにdockerfile書ける方法があったので共有します!

FROM centos:7

# git ver2系インストール
RUN yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
RUN yum install -y git
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1