LoginSignup
5

More than 5 years have passed since last update.

(古い記事です!)CentOS7に最新版のDockerをインストール

Last updated at Posted at 2014-07-12

以下古い記事

Docker v1.1.0のrpmを作った

@comuttさんのDocker v1.1.0 の rpm を作る - Qiitaを元に自分もやってみた。

最新版のrpm作り方

CentOS6用の場合
docker run -it tukiyo3/centos6-ja-rpmbuildenv /bin/bash
CentOS7用の場合
docker run -it tukiyo3/centos7-ja-rpmbuildenv /bin/bash
dockerのrpmbuild手順
cd /rpmbuild/
git pull
git branch -r
git checkout -b v1.1.0 origin/v1.1.0
rpmbuild -bb SPECS/docker-io.spec
find . | grep rpm$

/rpmbuild/RPMS/x86_64/docker-io-1.1.0-1.el?.x86_64.rpm が生成される。

CentOS7のrpm biuld環境作り方

CentOS7の場合
yum install -y git tar gcc
yum install -y \
 rpmdevtools \
 glibc-static pandoc device-mapper-devel \
 golang-github-godbus-dbus-devel \
 golang-googlecode-sqlite-devel \
 golang-googlecode-net-devel \
 golang-github-gorilla-context-devel \
 golang-github-gorilla-mux-devel \
 golang-github-kr-pty-devel \
 golang-github-kr-pty-devel \
 golang-github-coreos-go-systemd-devel
rpm -Uvh ftp://fr2.rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/g/golang-github-syndtr-gocapability-devel-0-0.7.git3c85049.fc21.noarch.rpm
yum clean all
rpmdev-setuptree
cd /
rm -rf /rpmbuild
git clone https://github.com/comutt/docker-SRPM.git rpmbuild
cd rpmbuild
git pull
git branch -r
git checkout -b v1.1.0 origin/v1.1.0
rpmbuild -bb SPECS/docker-io.spec
  • /rpmbuild/RPMS/x86_64/docker-io-1.1.0-1.el7.centos.x86_64.rpm が生成される。

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
5