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 正常启动了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章