k8s记录-ubuntu安装docker

sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker
docker-ce:https://download.docker.com/linux/ubuntu/dists/
下载 Docker-Compose: https://github.com/docker/compose/releases
sudo dpkg -i docker-ce-xxx_ubuntu_amd64.deb
sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose 
sudo chmod +x /usr/local/bin/docker-compose 
docker -v
docker-compose -v
systemctl enable docker
systemctl start docker
systemctl stop docker
rm -rf /var/lib/docker
mkdir /data/docker
ln -s /data/docker /var/lib/docker
systemctl start docker

posted @ 2019-10-14 11:14  信方  阅读(368)  评论(0编辑  收藏  举报