install docker on centos7
Posted 吴悟无
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install docker on centos7相关的知识,希望对你有一定的参考价值。
copy from:https://www.youtube.com/watch?v=pm55BUwQ0iE
# Prerequisites
- Kernel must be 3.10 at minimum
- For checking kernel version, use this command:
uname -r
# Add Docker‘s repository
- Create file docker.repo and save it in /etc/yum.repos.d/
sudo touch /etc/yum.repos.d/docker.repo
- Edit docker.repo and write this:
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
# Install Docker
sudo yum -y install docker-engine
# Starting Docker Service
sudo systemctl start docker.service
以上是关于install docker on centos7的主要内容,如果未能解决你的问题,请参考以下文章