买了阿里云主机,由于学生有优惠,玩起来确实爽。
系统版本:
[root@lxd ~]# cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core)
内核版本:
[root@lxd ~]# cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core)
Docker 软件包已经包括在默认的 CentOS-Extras 软件源里。使用yum进行安装:
[root@lxd ~]# yum install docker
安装完成后,启动docker服务,并设置开机自启动:
[root@lxd ~]# systemctl start docker.service [root@lxd ~]# systemctl enable docker.service ln -s '/usr/lib/systemd/system/docker.service' '/etc/systemd/system/multi-user.target.wants/docker.service'
搜索一下镜像:
[root@lxd ~]# docker search fedora INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/fedora Official Fedora 21 base image and semi-off... 224 [OK] docker.io docker.io/fedora/apache 33 [OK]
看一下docker版本:
[root@lxd ~]# docker version Client version: 1.7.1 Client API version: 1.19 Package Version (client): docker-1.7.1-115.el7.x86_64 Go version (client): go1.4.2 Git commit (client): 446ad9b/1.7.1 OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Package Version (server): docker-1.7.1-115.el7.x86_64 Go version (server): go1.4.2 Git commit (server): 446ad9b/1.7.1 OS/Arch (server): linux/amd64
Bingo!继续折腾!