1、下載docker源碼包 docker官網地址: https://download.docker.com/linux/static/stable/ 選擇.tgz的包下載,例如:https://download.docker.com/linux/static/stable/x86_64/docker... ...
1、下載docker源碼包
docker官網地址: https://download.docker.com/linux/static/stable/
選擇.tgz的包下載,例如:https://download.docker.com/linux/static/stable/x86_64/docker-19.03.1.tgz
wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.1.tgz
2、解壓複製
mkdir -p /usr/local/docker mkdir -p /data/docker tar -zxvf docker-19.03.;">1.tgz cp docker/* /usr/local/docker/ vim /etc/profile #找到PATH部分,加上docker的路徑,如:PATH=.:/usr/local/docker source /etc/profile
3、運行docker後臺進程
dockerd -g /data/docker &