LoginSignup
0
1

More than 5 years have passed since last update.

dockerインストール手順

Last updated at Posted at 2016-12-04

dockerインストール

dockerの環境を構築する機会があったため自分用のメモとして投稿

環境

OS : centos7

カーネル : 3.10.0-229.el7.x86_64

yumでインストール

  1. 既存のyumパッケージを更新
    $ sudo yum update
  2. yumリポジトリを追加
$ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]  
name=Docker Repository  
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/  
enabled=1  
gpgcheck=1  
gpgkey=https://yum.dockerproject.org/gpg  
EOF  

3.Dockerパッケージをインストール

$sudo yum install docker-engine

4. Dockerデーモンを開始

$sudo docker run hello-world

imageがビルドされ、コンテナが実行されればdockerが正しくインストールされたことが確認できる。

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