部署Docker
Docker官網:https://www.docker.com/
一、Ubuntu安裝docker
系統要求:
Docker目前只能運行在64位平臺上,並且要求內核版本不低於3.10,實際上內核越新越好,過低的內核版本容易造成功能不穩定。
方法1:
root@server:~# uname -a
Linux server 4.15.0-76-generic #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@server:~# apt-get install -y apt-transport-https ca-certificates curl software-properties-common #安裝支持HTTPS協議的源及相關軟件包
root@server:~# echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" >> /etc/apt/sources.list.d/docker.list #添加docker軟件源
root@server:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - #添加gpg密鑰
OK
root@se