
上QQ阅读APP看书,第一时间看更新
Installing Docker for CentOS
A 64-bit version of CentOS 7 is required to run Docker. You can get the Docker package from CentOS's repository via sudo yum install docker, but this might be an older version. Again, the installation steps from Docker's official guide (https://docs.docker.com/install/linux/docker-ce/centos/) are as follows:
- Install the utility to enable yum to use the extra repository:
$ sudo yum install -y yum-utils
- Set up Docker's repository:
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- Install Docker CE and start it. If key verification is prompted, make sure it matches 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35:
$ sudo yum install docker-ce
$ sudo systemctl start docker