Ubuntu下Docker CE的安装

2019-01-16 20:41:14王冬梅

指定版本安装

如果希望指定版本方式安装,则在安装时需要指定docker-ce=17.12.1~ce-0~ubuntu版本方式即可

root@ubuntu:/home/devops# apt-cache madison docker-ce docker-ce | 17.12.1~ce-0~ubuntu | https://download.docker.com/linux/ubuntu artful/stable amd64 Packages docker-ce | 17.12.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu artful/stable amd64 Packages root@ubuntu:/home/devops# root@ubuntu:/home/devops# apt-get install docker-ce=17.12.1~ce-0~ubuntu Reading package lists... Done Building dependency tree Reading state information... Done docker-ce is already the newest version (17.12.1~ce-0~ubuntu). 0 upgraded, 0 newly installed, 0 to remove and 53 not upgraded. root@ubuntu:/home/devops#

安装后确认

版本确认

root@ubuntu:/home/devops# docker version Client: Version: 17.12.1-ce API version: 1.35 Go version: go1.9.4 Git commit: 7390fc6 Built: Tue Feb 27 22:17:53 2018 OS/Arch: linux/amd64 Server: Engine: Version: 17.12.1-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.4 Git commit: 7390fc6 Built: Tue Feb 27 22:16:25 2018 OS/Arch: linux/amd64 Experimental: false root@ubuntu:/home/devops#

整体信息

可以看出很多基本信息,比如存储方式为overlay2

root@ubuntu:/home/devops# docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 17.12.1-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 9b55aab90508bd389d7654c4baf173a981477d55 runc version: 9f9c96235cc97674e935002fc3d78361b696a69e init version: 949e6fa Security Options: apparmor seccomp Profile: default Kernel Version: 4.13.0-21-generic Operating System: Ubuntu 17.10 OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 988.7MiB Name: ubuntu ID: TYYA:4LWB:YTHA:2DNB:XBXM:NFNP:ADMY:VZEJ:2ZBN:KPKW:PTML:S5A2 Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false WARNING: No swap limit support root@ubuntu:/home/devops#

参考文献

https://docs.docker.com/install/linux/docker-ce/ubuntu/

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对易采站长站的支持。如果你想了解更多相关内容请查看下面相关链接

您可能感兴趣的文章:

ubuntu16.04下安装openssh-server报依赖错误的完美解决方法(非常不错)ubuntu 安装openssh服务器的教程详解Vmware下Ubuntu server版安装图文教程Ubuntu 18.04 Server 设置静态IP 的方法Ubuntu Server 16.04下mysql8.0安装配置图文教程详解使用Hyper-V安装Ubuntu Server 16.10详解Ubuntu Server下启动/停止/重启MySQL数据库的三种方式Ubuntu 18.04 LTS中配置IP地址的完整步骤Ubuntu基础设定:openssh-server的安装和使用介绍