docker 1.13以及新特性
来源:互联网 发布:手机如何关注淘宝达人 编辑:程序博客网 时间:2024/06/10 12:06
docker1.12发布之后时隔好久才迎来2016年docker第二个最重要的版本的发布. 在这篇文章之中我们将一起看一下有哪些特性的增强并来简单体验一下.
主要变更
docker 1.13修复了很多过去的bug,同时也添加了很多新的特性,列举一些主要变化,如下:
影响
基于本次更新主要以功能增强和bug修正为主,所以对之前版本的影响不是很大。
比如弃用的仅仅为docker daemon命令弃用或者docker pull的repo:shortid语法弃用这样影响较小的部分。
另外plugin功能的正式发布会带来一点影响。如果你在docker1.12中使用了plugin相关的试验性功能,你需要先行删除你的那些plugin以及/var/lib/docker/plugins/下的json文件,等docker版本更新之后再重新安装。试验性的功能还是有一些变化的风险性的。
安装前提
假定为centos7.2为宿主OS,之前如果安装有低版本的docker,最好先行删除,同时container-selinux和docker-common也一并删除。
另外linux内核需要在3.10以上,OS应该为64位。
[root@liumiaocn ~]# uname -r3.10.0-327.el7.x86_64[root@liumiaocn ~]# getconf LONG_BIT64[root@liumiaocn ~]#
安装
安装yum-utils
[root@liumiaocn ~]# yum install -y yum-utilsLoaded plugins: fastestmirror, langpacksDetermining fastest mirrors * base: mirrors.btte.net * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comPackage yum-utils-1.1.31-40.el7.noarch already installed and latest versionNothing to do[root@liumiaocn ~]# 已经安装
设定yum-config-manager
[root@liumiaocn ~]# yum-config-manager \> --add-repo \> https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repoLoaded plugins: fastestmirror, langpacksadding repo from: https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repograbbing file https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to /etc/yum.repos.d/docker.reporepo saved to /etc/yum.repos.d/docker.repo[root@liumiaocn ~]#
更新yum的package索引
[root@liumiaocn ~]# yum makecache fastLoaded plugins: fastestmirror, langpacksbase | 3.6 kB 00:00:00docker-main | 2.9 kB 00:00:00epel/x86_64/metalink | 4.6 kB 00:00:00extras | 3.4 kB 00:00:00updates | 3.4 kB 00:00:00docker-main/primary_db | 28 kB 00:00:02Loading mirror speeds from cached hostfile * base: mirrors.btte.net * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comMetadata Cache Created[root@liumiaocn ~]#
安装docker-engine
[root@liumiaocn ~]# rpm -e docker-common-1.10.3-59.el7.centos.x86_64[root@liumiaocn ~]#[root@liumiaocn ~]#[root@liumiaocn ~]# yum -y docker-engineLoaded plugins: fastestmirror, langpacksNo such command: docker-engine. Please use /usr/bin/yum --help[root@liumiaocn ~]# yum -y install docker-engineLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.btte.net * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comResolving Dependencies--> Running transaction check---> Package docker-engine.x86_64 0:1.13.0-1.el7.centos will be installed--> Processing Dependency: docker-engine-selinux >= 1.13.0-1.el7.centos for package: docker-engine-1.13.0-1.el7.centos.x86_64--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64--> Running transaction check---> Package docker-engine-selinux.noarch 0:1.13.0-1.el7.centos will be installed---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed--> Finished Dependency ResolutionDependencies Resolved=================================================================================================================================================== Package Arch Version Repository Size===================================================================================================================================================Installing: docker-engine x86_64 1.13.0-1.el7.centos docker-main 19 MInstalling for dependencies: docker-engine-selinux noarch 1.13.0-1.el7.centos docker-main 28 k libtool-ltdl x86_64 2.4.2-21.el7_2 base 49 kTransaction Summary===================================================================================================================================================Install 1 Package (+2 Dependent packages)Total size: 19 MInstalled size: 65 MDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum. Installing : docker-engine-selinux-1.13.0-1.el7.centos.noarch 1/3 Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64 2/3 Installing : docker-engine-1.13.0-1.el7.centos.x86_64 3/3 Verifying : libtool-ltdl-2.4.2-21.el7_2.x86_64 1/3 Verifying : docker-engine-selinux-1.13.0-1.el7.centos.noarch 2/3 Verifying : docker-engine-1.13.0-1.el7.centos.x86_64 3/3Installed: docker-engine.x86_64 0:1.13.0-1.el7.centosDependency Installed: docker-engine-selinux.noarch 0:1.13.0-1.el7.centos libtool-ltdl.x86_64 0:2.4.2-21.el7_2Complete![root@liumiaocn ~]#
启动docker
[root@liumiaocn ~]# systemctl enable docker; systemctl start docker;Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.[root@liumiaocn ~]#
确认版本
[root@liumiaocn ~]# docker versionClient: Version: 1.13.0 API version: 1.25 Go version: go1.7.3 Git commit: 49bf474 Built: Tue Jan 17 09:55:28 2017 OS/Arch: linux/amd64Server: Version: 1.13.0 API version: 1.25 (minimum version 1.12) Go version: go1.7.3 Git commit: 49bf474 Built: Tue Jan 17 09:55:28 2017 OS/Arch: linux/amd64 Experimental: false[root@liumiaocn ~]#
新增功能
docker新添加的特性的使用方法,比如docker system:
[root@liumiaocn ~]# docker systemUsage: docker system COMMANDManage DockerOptions: --help Print usageCommands: df Show docker disk usage events Get real time events from the server info Display system-wide information prune Remove unused dataRun 'docker system COMMAND --help' for more information on a command.[root@liumiaocn ~]#
docker secret:
[root@liumiaocn ~]# docker secretUsage: docker secret COMMANDManage Docker secretsOptions: --help Print usageCommands: create Create a secret from a file or STDIN as content inspect Display detailed information on one or more secrets ls List secrets rm Remove one or more secretsRun 'docker secret COMMAND --help' for more information on a command.[root@liumiaocn ~]#
总结
这篇文章中一起看了一下docker1.13中有哪些新的特性以及如何在centos上进行安装。详细的使用在后面的文章中将会进一步展开。
0 0
- docker 1.13以及新特性
- Docker 1.9的新网络特性,以及Overlay详解
- Docker Swarm新特性
- kubernetes1.4新特性:支持Docker新特性
- iOS10---新特性以及适配点
- iOS10---新特性以及适配点
- kafka优点以及新特性
- Oracle10g安装升级以及新特性介绍
- JDK1.5的新特性以及反射
- Mongodb2.6升级修改以及新特性
- 什么是Visual C++以及C++新特性
- wkwebkit新特性以及与js交互
- Xcode8安装使用以及新特性
- iOS 10 新特性以及适配点(转)
- iOS 10 新特性以及适配点
- iOS - Xcode8新特性以及坑
- iOS 10 新特性以及xcode8
- iOS10---新特性以及适配点(转)
- windows10+kali linux2.0双系统安装
- JAVA对xml文件的操作
- 在Mac OS X Yosemite下搭建Apache+PHP+Mysql
- ARC 068E Snuke Line 区间问题+树状数组
- NOIP 2012 提高组 复赛 day2 mod 同余方程
- docker 1.13以及新特性
- C++指针——(1)指针基础
- 启动Oracle数据库报错:systax error or unresolved network name“LISTENER_ORCL”
- 双目相机--双目视差与深度距离关系推导详解
- 【Python学习】之 简单图形编程
- 回顾2016展望2017
- android 修改状态栏颜色
- hdu 2504
- 【t042】炮击坦克