※CentOS7(7.5)にdocker(docker-ce)をinstallした時のメモ(2018/7/21)

OS

cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

install

  • 基本的に以下に従いinstallを実施

https://docs.docker.com/install/linux/docker-ce/centos/

Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data and lvm2 are required by the devicemapper storage driver.

  • 事前に必要なパッケージを追加
sudo yum install -y yum-utils 
  device-mapper-persistent-data 
  lvm2

Use the following command to set up the stable repository.
You always need the stable repository, even if you want to install builds from
the edge or test repositories as well.

  • stable versionのdocker-ceをinstallする為yum repositoryを追加
sudo yum-config-manager 
    --add-repo 
    https://download.docker.com/linux/centos/docker-ce.repo

Install the latest version of Docker CE, or go to the next step to install a specific version:

  • docker-ceのinstall
sudo yum install docker-ce

start docker!

  • docker起動
sudo systemctl start docker

どなたかのお役にたてば嬉しいです。

TOP