Centos7下安装Docker1.8
生活随笔
收集整理的這篇文章主要介紹了
Centos7下安装Docker1.8
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1.創(chuàng)建docker的yum庫
[root@localhost~]#?cd?/etc/yum.repos.d/ [root@localhostyum.repos.d]#?vim?docker.repo [dockerrepo] name=DockerRepository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg2.安裝docker
[root@localhost~]#?yum?install?docker-engine3.關(guān)閉centos7下的firewalld服務(wù)并安裝iptables-ser
[root@localhost~]#?systemctl?disable?firewalld rm'/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' rm'/etc/systemd/system/basic.target.wants/firewalld.service' [root@localhost~]#?yum?-y?install?iptables-services4.開啟iptables服務(wù)
[root@localhost~]#?systemctl?enable?iptables ln-s?'/usr/lib/systemd/system/iptables.service''/etc/systemd/system/basic.target.wants/iptables.service' [root@localhost~]#?systemctl?start?iptables5.啟動(dòng)docker服務(wù)并設(shè)置開機(jī)自動(dòng)啟動(dòng)
[root@localhost~]#?systemctl?start?docker.service [root@localhost~]#?systemctl?enable?docker.service ln-s?'/usr/lib/systemd/system/docker.service''/etc/systemd/system/multi-user.target.wants/docker.service'6.驗(yàn)證docker是否安裝成功
[root@localhost~]# docker info
7.查看安裝后的docker版本
[root@localhost~]# docker version
轉(zhuǎn)載于:https://blog.51cto.com/linuxpython/1697036
總結(jié)
以上是生活随笔為你收集整理的Centos7下安装Docker1.8的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 提高数据库效率
- 下一篇: Swift - 做一个简单的无线U盘(手