如有侵权,请联系作者。
转载请注明出处。
记录自己,帮助他人。
标签:Ubuntu安装Docker,Ubuntu,Docker,安装,安装Docker,LInux。
修订历史
- 2020-05-08:首次编辑。
说明
- Ubuntu 版本:Ubuntu 14.04(Trusty)
- 此过程可能耗时较长,请耐心等待,勿中途取消。
步骤
1. 执行安装命令
[adam@ZCY ~]$ sudo curl -sSL https://get.docker.com/ | sh
2. 安装完成后显示
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:24:58 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:23:24 2018
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker vagrant
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.
3. 验证是否安装成功
[adam@ZCY ~]$ sudo docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 18
Server Version: 18.09.5
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 local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-957.10.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.795GiB
Name: ZCY
ID: DJDK:6AQR:3QBT:QDFM:DXOS:MST3:BCZ5:57L6:H4RP:RGIA:KVSR:Z7UI
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
Registry Mirrors:
https://jz2y6kgq.mirror.aliyuncs.com/
http://hub-mirror.c.163.com/
https://dockerhub.azk8s.cn/
Live Restore Enabled: false
Product License: Community Engine