update install_docker.sh

main
xiaosuGW 3 years ago
parent 5af9fffd55
commit 3327af8aaa

@ -1,5 +1,22 @@
sudo chown -R $(id -u):$(id -g) /my_mount
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update sudo apt-get update
sudo apt install docker.io sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo service docker stop sudo service docker stop
sudo mv /var/lib/docker /my_mount sudo mv /var/lib/docker /my_mount
sudo ln -s /my_mount/docker /var/lib/docker sudo ln -s /my_mount/docker /var/lib/docker

Loading…
Cancel
Save