docker安装与重装
docker安装
https://blog.csdn.net/lyqhf153/article/details/79585976 参考上面的方式
cat /etc/issue
uname -r
uname -a
cat /proc/version
df -h
yum list docker-ce --showduplicates | sort -r 查看docker-ce的版本列表
sudo yum install -y docker 没有docker-ce 就安装老版本的
docker info
systemctl start docker 启动失败
https://blog.csdn.net/youjin/article/details/80015377 启动docker失败
vim /etc/sysconfig/docker
OPTIONS='--selinux-enabled=false 改为=false
systemctl restart docker 重启
docker卸载与重装
free -h 查看内存
echo 1 > /proc/sys/vm/drop_caches 释放缓存
free -h
卸载docker
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
安装指定版本
curl https://releases.rancher.com/install-docker/1.12.6.sh | sh
sudo systemctl start docker
docker ps
docker version
docker info
docker exec -it 48 /bin/bash