docker 的一个小问题

在使用docker启动mysql的时候碰到一个问题

 sudo docker rm d9e226e96a22f45775e40313494bf00cd29490d978aff125789c47b00442971b
d9e226e96a22f45775e40313494bf00cd29490d978aff125789c47b00442971b
chenwei@ubuntu1:~/mysql-image/conf/mysql.conf.d$ sudo docker run --name=mysql-latest -d mysql/mysql-server:latest --mount type=bind,src=/home/chenwei/mysql-image/conf/my.cnf,dst=/etc/my.cnf --mount type=bind,src=/home/chenwei/mysql-image/data,dst=/var/lib/mysql 
a4ed62d4ea5da84c14984056b4a3971eb843f5ab0bed914717f0a0e6af1cf90e
docker: Error response from daemon: docker-containerd-shim not installed on system.

感谢stackoverflow
说是containerd需要重启

sudo systemctl restart containerd

于是mysql image 正常启动了

发布了14 篇原创文章 · 获赞 3 · 访问量 8130

猜你喜欢

转载自blog.csdn.net/magasea/article/details/103474078