yum -y install docker 提示missing signature
参考这里 https://www.8a.hk/news/content/8235.html
因为docker客户端太老了
systemctl enable docker
systemctl start docker
systemctl status docker
显示activate基本没有问题
docker pull 总是io timeout
docker pull mysql时候爆发的坑
参考
https://www.cnblogs.com/likecoke/p/17495358.html
修改/etc/docker/daemon.json
{
"registry-mirrors": [
"https://yxzrazem.mirror.aliyuncs.com",
"http://hub-mirror.c.163.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
],
"log-driver": "json-file",
"log-opts": {"max-size": "1024m","max-file": "3"}
}
创建容器
docker run -d -p 8306:3306 -v /data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root mysql:latest
mysql提示权限问题
参考这个 修改mysql的user表
https://www.jb51.net/database/294905uw3.htm